diff options
author | Aaron Bray <aaron.bray@kitware.com> | 2018-01-03 11:18:34 -0500 |
---|---|---|
committer | Aaron Bray <aaron.bray@kitware.com> | 2018-01-08 11:35:36 -0500 |
commit | fab1b432eb1207513bee57039ecb21d95f880f89 (patch) | |
tree | 453558f58cb28a616caeff4dd0398b68cb3fa9d7 /Modules/FindCUDA/run_nvcc.cmake | |
parent | 64b624f118ac4f86e4a1b799b3d2130b5065847b (diff) | |
download | cmake-fab1b432eb1207513bee57039ecb21d95f880f89.tar.gz |
FindCUDA: Update to properly find MSVC 2017 compiler tools
An implementation that handles the different installation locations of
visual studio compiler tools
Diffstat (limited to 'Modules/FindCUDA/run_nvcc.cmake')
-rw-r--r-- | Modules/FindCUDA/run_nvcc.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake index 86051cf56e..47d2a5fb19 100644 --- a/Modules/FindCUDA/run_nvcc.cmake +++ b/Modules/FindCUDA/run_nvcc.cmake @@ -125,7 +125,7 @@ list(APPEND CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS_${build_configuration}}) list( FIND CUDA_NVCC_FLAGS "-ccbin" ccbin_found0 ) list( FIND CUDA_NVCC_FLAGS "--compiler-bindir" ccbin_found1 ) if( ccbin_found0 LESS 0 AND ccbin_found1 LESS 0 AND CUDA_HOST_COMPILER ) - if (CUDA_HOST_COMPILER STREQUAL "$(VCInstallDir)bin" AND DEFINED CCBIN) + if (CUDA_HOST_COMPILER STREQUAL "@_CUDA_MSVC_HOST_COMPILER@" AND DEFINED CCBIN) set(CCBIN -ccbin "${CCBIN}") else() set(CCBIN -ccbin "${CUDA_HOST_COMPILER}") |