diff options
author | Brad King <brad.king@kitware.com> | 2016-12-13 18:05:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 15:39:03 (GMT) |
commit | 522b913f437b04aa10b84cb5807ab43181377d7e (patch) | |
tree | 59a594fbcd691f6e9803eab137b4a4eea0b65358 /Modules/CMakeFindBinUtils.cmake | |
parent | 02582b91ad92969d8fbbd845a5d48b3fbd762966 (diff) | |
download | CMake-522b913f437b04aa10b84cb5807ab43181377d7e.zip CMake-522b913f437b04aa10b84cb5807ab43181377d7e.tar.gz CMake-522b913f437b04aa10b84cb5807ab43181377d7e.tar.bz2 |
CUDA: Find MSVC binutils on Windows
On Windows the host link launcher is just `link.exe`. Find and use that
instead of trying to extract the launcher from the `nvcc -v` output.
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index 75a031e..4c0486e 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -25,6 +25,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC" OR "x${CMAKE_Fortran_SIMULATE_ID}" STREQUAL "xMSVC" OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" + OR "x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC" OR (CMAKE_GENERATOR MATCHES "Visual Studio" AND NOT CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")) |