summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-19 13:05:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-19 13:05:14 (GMT)
commite2a547602f15aa8c35fbdef40627c137851e6e1b (patch)
tree1b77d8271103e0448c951d3f15e3c623ba5df742
parent9b29cfd21f7f48a8c6d5010b98fc585452ff6eb2 (diff)
parent7123c8fdbfc8effd0b085e26cef982cc4cd88097 (diff)
downloadCMake-e2a547602f15aa8c35fbdef40627c137851e6e1b.zip
CMake-e2a547602f15aa8c35fbdef40627c137851e6e1b.tar.gz
CMake-e2a547602f15aa8c35fbdef40627c137851e6e1b.tar.bz2
Merge topic 'CheckLanguage-cuda-host-compiler' into release-3.22
7123c8fdbf CheckLanguage: Don't pass CMAKE_CUDA_HOST_COMPILER for Visual Studio Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6633
-rw-r--r--Modules/CheckLanguage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index 559c103..52f707c 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -46,7 +46,7 @@ macro(check_language lang)
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang})
set(extra_compiler_variables)
- if(${lang} STREQUAL CUDA)
+ if(${lang} STREQUAL CUDA AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
set(extra_compiler_variables "set(CMAKE_CUDA_HOST_COMPILER \\\"\${CMAKE_CUDA_HOST_COMPILER}\\\")")
endif()