diff options
author | Brad King <brad.king@kitware.com> | 2024-01-31 16:26:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-31 16:27:53 (GMT) |
commit | 0a5d29159e086ddd3ee9fc645eb575281785b9cf (patch) | |
tree | f4cabd1155320d607b23bb64dc3d4b7d868fe8f0 /Tests/CMakeOnly | |
parent | 16b1f0c3e99023316b12fdabd1980a18b738d942 (diff) | |
download | CMake-0a5d29159e086ddd3ee9fc645eb575281785b9cf.zip CMake-0a5d29159e086ddd3ee9fc645eb575281785b9cf.tar.gz CMake-0a5d29159e086ddd3ee9fc645eb575281785b9cf.tar.bz2 |
Tests: Add "Fortran" test label
With this, `ctest -L Fortran` will run only tests covering Fortran.
Diffstat (limited to 'Tests/CMakeOnly')
-rw-r--r-- | Tests/CMakeOnly/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/CMakeLists.txt b/Tests/CMakeOnly/CMakeLists.txt index 30cabf1..ea06464 100644 --- a/Tests/CMakeOnly/CMakeLists.txt +++ b/Tests/CMakeOnly/CMakeLists.txt @@ -25,8 +25,8 @@ add_CMakeOnly_test(CheckCXXSymbolExists) add_CMakeOnly_test(CheckCXXCompilerFlag) add_CMakeOnly_test(CheckLanguage) +set_property(TEST CMakeOnly.CheckLanguage APPEND PROPERTY LABELS "HIP" "Fortran") if (CMake_TEST_HIP) - set_property(TEST CMakeOnly.CheckLanguage APPEND PROPERTY LABELS "HIP") add_CMakeOnly_test(CheckLanguageHIPPlatform) set_property(TEST CMakeOnly.CheckLanguageHIPPlatform APPEND PROPERTY LABELS "HIP") add_CMakeOnly_test(CheckLanguageHIPPlatform2) @@ -52,6 +52,7 @@ endif() if(CMAKE_Fortran_COMPILER) add_CMakeOnly_test(CompilerIdFortran) + set_property(TEST CMakeOnly.CompilerIdFortran APPEND PROPERTY LABELS "Fortran") endif() if(CMAKE_GENERATOR MATCHES "Visual Studio ([^9]|9[0-9])") add_CMakeOnly_test(CompilerIdCSharp) |