summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-06 13:27:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-06 13:27:13 (GMT)
commit1cadb625f26860030faaebaaf0bb897f439a3954 (patch)
treec6095da529b84eba228e9829f82a35022899590e /Modules
parent00065e2087ffd854a364507dcd84ef095aff1cc9 (diff)
parent5b304a75033905a33841a396773d356349930030 (diff)
downloadCMake-1cadb625f26860030faaebaaf0bb897f439a3954.zip
CMake-1cadb625f26860030faaebaaf0bb897f439a3954.tar.gz
CMake-1cadb625f26860030faaebaaf0bb897f439a3954.tar.bz2
Merge topic 'CheckLanguage-cuda-host'
5b304a7503 CheckLanguage: Fix forwarding of CMAKE_CUDA_HOST_COMPILER Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !4711
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckLanguage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index f48107a..d67d8d3 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -43,7 +43,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)
set(extra_compiler_variables "set(CMAKE_CUDA_HOST_COMPILER \\\"\${CMAKE_CUDA_HOST_COMPILER}\\\")")
endif()