summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA
diff options
context:
space:
mode:
authorAaron Bray <aaron.bray@kitware.com>2018-01-03 16:18:34 (GMT)
committerAaron Bray <aaron.bray@kitware.com>2018-01-08 16:35:36 (GMT)
commitfab1b432eb1207513bee57039ecb21d95f880f89 (patch)
tree453558f58cb28a616caeff4dd0398b68cb3fa9d7 /Modules/FindCUDA
parent64b624f118ac4f86e4a1b799b3d2130b5065847b (diff)
downloadCMake-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.cmake2
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}")