summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckLinkerFlag
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-09-14 14:28:17 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-08 12:30:59 (GMT)
commit5c66ac31e638dae7529e04064047722fca80ec01 (patch)
tree300bed80572511a9700b87e90eec808ad2abdd96 /Tests/RunCMake/CheckLinkerFlag
parentda2622ff366e6089a98109c68ececac58d598b66 (diff)
downloadCMake-5c66ac31e638dae7529e04064047722fca80ec01.zip
CMake-5c66ac31e638dae7529e04064047722fca80ec01.tar.gz
CMake-5c66ac31e638dae7529e04064047722fca80ec01.tar.bz2
CUDA: CheckLinkerFlag now supports CUDA
Diffstat (limited to 'Tests/RunCMake/CheckLinkerFlag')
-rw-r--r--Tests/RunCMake/CheckLinkerFlag/CheckCUDALinkerFlag.cmake3
-rw-r--r--Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake4
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckLinkerFlag/CheckCUDALinkerFlag.cmake b/Tests/RunCMake/CheckLinkerFlag/CheckCUDALinkerFlag.cmake
new file mode 100644
index 0000000..84d6dd9
--- /dev/null
+++ b/Tests/RunCMake/CheckLinkerFlag/CheckCUDALinkerFlag.cmake
@@ -0,0 +1,3 @@
+
+set (CHECK_LANGUAGE CUDA)
+include ("${CMAKE_CURRENT_SOURCE_DIR}/CheckLinkerFlag.cmake")
diff --git a/Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake b/Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake
index 224a2a3..6ec9148 100644
--- a/Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CheckLinkerFlag/RunCMakeTest.cmake
@@ -12,3 +12,7 @@ endif()
if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
run_cmake(CheckFortranLinkerFlag)
endif()
+
+if (CMake_TEST_CUDA)
+ run_cmake(CheckCUDALinkerFlag)
+endif()