summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-22 12:25:08 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-04-22 12:25:26 (GMT)
commitcba96f59d5dd2b9ce38a3b0c636a97deda28e035 (patch)
tree28ee99443986e6641f76a12ca106c9db5a5909bf /Tests/CMakeLists.txt
parentc3864d7f62710b8c16c6e8f1d2864472d374a5dd (diff)
parentfb0990ef04ab3c3f56bb6399403fc563b9dc89f8 (diff)
downloadCMake-cba96f59d5dd2b9ce38a3b0c636a97deda28e035.zip
CMake-cba96f59d5dd2b9ce38a3b0c636a97deda28e035.tar.gz
CMake-cba96f59d5dd2b9ce38a3b0c636a97deda28e035.tar.bz2
Merge topic 'cuda-std'
fb0990ef04 Tests/CompileFeatures: Cover cuda_std_## meta-features 011f3d1dd3 Tests/CompileFeatures: Fix c_std_23 case with Clang < 14 1f40604421 Tests/CompileFeatures: Cover CUDA default standard level 138436609f CUDA: Fix detection of default C++ standard level with MSVC host compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9444
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index fa388e0..5d9d193 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -395,11 +395,15 @@ if(BUILD_TESTING)
string(REPLACE ";" "$<SEMICOLON>" TEST_STDS_C "${CMake_TEST_C_STANDARDS}")
string(REPLACE ";" "$<SEMICOLON>" TEST_STDS_CXX "${CMake_TEST_CXX_STANDARDS}")
+ string(REPLACE ";" "$<SEMICOLON>" TEST_STDS_CUDA "${CMake_TEST_CUDA_STANDARDS}")
set(CompileFeatures_BUILD_OPTIONS
-DCMake_TEST_C_STANDARDS=${TEST_STDS_C}
-DCMake_TEST_CXX_STANDARDS=${TEST_STDS_CXX}
+ -DCMake_TEST_CUDA=${CMake_TEST_CUDA}
+ -DCMake_TEST_CUDA_STANDARDS=${TEST_STDS_CUDA}
)
ADD_TEST_MACRO(CompileFeatures CompileFeatures)
+ set_property(TEST CompileFeatures APPEND PROPERTY LABELS "CUDA")
ADD_TEST_MACRO(CMakeCommands.target_compile_features)