summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/CMakeLists.txt
diff options
context:
space:
mode:
authorGergely Meszaros <gergely@streamhpc.com>2024-01-02 15:23:06 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-04 16:25:15 (GMT)
commitce9c6d0994799a64d1cea4eac0492d27ded74b75 (patch)
treeb9acd37b50e6a46c76fa8fa929fce42933705f72 /Tests/CMakeOnly/CMakeLists.txt
parent9ba3fc91e5ce567b0f50b28573af9508242446d6 (diff)
downloadCMake-ce9c6d0994799a64d1cea4eac0492d27ded74b75.zip
CMake-ce9c6d0994799a64d1cea4eac0492d27ded74b75.tar.gz
CMake-ce9c6d0994799a64d1cea4eac0492d27ded74b75.tar.bz2
HIP: Propagate CMAKE_HIP_PLATFORM from/to the test project in check_language
Fixes: #25541
Diffstat (limited to 'Tests/CMakeOnly/CMakeLists.txt')
-rw-r--r--Tests/CMakeOnly/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeOnly/CMakeLists.txt b/Tests/CMakeOnly/CMakeLists.txt
index a41b44e..30cabf1 100644
--- a/Tests/CMakeOnly/CMakeLists.txt
+++ b/Tests/CMakeOnly/CMakeLists.txt
@@ -25,6 +25,13 @@ add_CMakeOnly_test(CheckCXXSymbolExists)
add_CMakeOnly_test(CheckCXXCompilerFlag)
add_CMakeOnly_test(CheckLanguage)
+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)
+ set_property(TEST CMakeOnly.CheckLanguageHIPPlatform2 APPEND PROPERTY LABELS "HIP")
+endif()
add_CMakeOnly_test(CheckStructHasMember)