diff options
author | Brad King <brad.king@kitware.com> | 2024-04-22 12:25:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-04-22 12:25:26 (GMT) |
commit | cba96f59d5dd2b9ce38a3b0c636a97deda28e035 (patch) | |
tree | 28ee99443986e6641f76a12ca106c9db5a5909bf /Tests/CMakeLists.txt | |
parent | c3864d7f62710b8c16c6e8f1d2864472d374a5dd (diff) | |
parent | fb0990ef04ab3c3f56bb6399403fc563b9dc89f8 (diff) | |
download | CMake-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.txt | 4 |
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) |