summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-05-31 12:39:16 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-03 14:36:06 (GMT)
commitfada8cbfd6ae13d15b015f667a85096b15dc07b1 (patch)
tree5f2998abc6739ff016b1d4065fd3efcba030759e /Tests/CMakeOnly
parent22d58e07e5dc54e113ae7414dea604549b0cfc43 (diff)
downloadCMake-fada8cbfd6ae13d15b015f667a85096b15dc07b1.zip
CMake-fada8cbfd6ae13d15b015f667a85096b15dc07b1.tar.gz
CMake-fada8cbfd6ae13d15b015f667a85096b15dc07b1.tar.bz2
CheckLanguage: Report CMAKE_CUDA_HOST_COMPILER if needed for compilation
Fixes: #19013
Diffstat (limited to 'Tests/CMakeOnly')
-rw-r--r--Tests/CMakeOnly/CheckLanguage/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt b/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt
index f5336dc..ca4becb 100644
--- a/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt
+++ b/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt
@@ -7,7 +7,8 @@ set(expect_C 1)
set(expect_CXX 1)
unset(expect_Fortran)
set(expect_NoSuchLanguage 0)
-foreach(lang C CXX Fortran NoSuchLanguage)
+
+foreach(lang C CXX Fortran CUDA NoSuchLanguage)
check_language(${lang})
if(NOT DEFINED CMAKE_${lang}_COMPILER)
message(FATAL_ERROR "check_language(${lang}) did not set result")