diff options
author | Brad King <brad.king@kitware.com> | 2022-09-29 12:04:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-29 13:26:23 (GMT) |
commit | 586c2ab4f1fd758956c6d4f149c6f5628de7ebeb (patch) | |
tree | d3873f36dee911b8fbbb94a07d25e3e80c1c18f1 /Tests/RunCMake/CMakeLists.txt | |
parent | cadcb6a5f0e1ebaefd74f8c52151e410c57cfa96 (diff) | |
download | CMake-586c2ab4f1fd758956c6d4f149c6f5628de7ebeb.zip CMake-586c2ab4f1fd758956c6d4f149c6f5628de7ebeb.tar.gz CMake-586c2ab4f1fd758956c6d4f149c6f5628de7ebeb.tar.bz2 |
Tests: Test more CMakeTest*Compiler.cmake fallbacks
Extend the test added by commit f891a75d5c (Tests: Test
CMakeTest*Compiler.cmake fallbacks, 2022-09-27) to cover more languages.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 428bbff..6c5ab7f 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -298,7 +298,16 @@ add_RunCMake_test(CompilerNotFound) if (APPLE AND CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") list(APPEND CompilerTest_ARGS -DCMake_TEST_OBJC=1) endif() +if(CMAKE_Fortran_COMPILER) + list(APPEND CompilerTest_ARGS -DCMake_TEST_Fortran=1) +endif() +foreach(lang IN ITEMS CUDA HIP ISPC) + if(CMake_TEST_${lang}) + list(APPEND CompilerTest_ARGS -DCMake_TEST_${lang}=1) + endif() +endforeach() add_RunCMake_test(CompilerTest) +set_property(TEST RunCMake.CompilerTest APPEND PROPERTY LABELS "CUDA" "HIP" "ISPC") add_RunCMake_test(Configure -DMSVC_IDE=${MSVC_IDE}) add_RunCMake_test(DisallowedCommands) if("${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja") |