diff options
author | Brad King <brad.king@kitware.com> | 2016-03-22 15:36:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-22 15:36:45 (GMT) |
commit | f77ad2c736061718c870dc09255efd9dea259d0d (patch) | |
tree | 8c26146838dc5eaa475d70fa7f642606941e3c07 /Modules | |
parent | 2c3b8a1cd801a8c3c5331d8345bf8ed6d9e38595 (diff) | |
parent | 72a97b7a761b46fd1668e3ae81dd9322972f4cb3 (diff) | |
download | CMake-f77ad2c736061718c870dc09255efd9dea259d0d.zip CMake-f77ad2c736061718c870dc09255efd9dea259d0d.tar.gz CMake-f77ad2c736061718c870dc09255efd9dea259d0d.tar.bz2 |
Merge branch 'FindCUDA-verbatim' into release
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 47c03f3..fe8b18e 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -1551,7 +1551,12 @@ function(CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS output_file cuda_target options list( FIND nvcc_flags "-ccbin" ccbin_found0 ) list( FIND nvcc_flags "--compiler-bindir" ccbin_found1 ) if( ccbin_found0 LESS 0 AND ccbin_found1 LESS 0 AND CUDA_HOST_COMPILER ) - list(APPEND nvcc_flags -ccbin "\"${CUDA_HOST_COMPILER}\"") + # Match VERBATIM check below. + if(CUDA_HOST_COMPILER MATCHES "\\$\\(VCInstallDir\\)") + list(APPEND nvcc_flags -ccbin "\"${CUDA_HOST_COMPILER}\"") + else() + list(APPEND nvcc_flags -ccbin "${CUDA_HOST_COMPILER}") + endif() endif() # Create a list of flags specified by CUDA_NVCC_FLAGS_${CONFIG} and CMAKE_${CUDA_C_OR_CXX}_FLAGS* |