diff options
author | Aaron Bray <aaron.bray@kitware.com> | 2018-01-03 16:18:34 (GMT) |
---|---|---|
committer | Aaron Bray <aaron.bray@kitware.com> | 2018-01-08 16:35:36 (GMT) |
commit | fab1b432eb1207513bee57039ecb21d95f880f89 (patch) | |
tree | 453558f58cb28a616caeff4dd0398b68cb3fa9d7 /Modules/FindCUDA | |
parent | 64b624f118ac4f86e4a1b799b3d2130b5065847b (diff) | |
download | CMake-fab1b432eb1207513bee57039ecb21d95f880f89.zip CMake-fab1b432eb1207513bee57039ecb21d95f880f89.tar.gz CMake-fab1b432eb1207513bee57039ecb21d95f880f89.tar.bz2 |
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')
-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 86051cf..47d2a5f 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}") |