diff options
Diffstat (limited to 'Tests/FindThreads/CMakeLists.txt')
-rw-r--r-- | Tests/FindThreads/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Tests/FindThreads/CMakeLists.txt b/Tests/FindThreads/CMakeLists.txt index 36518a3..aa9499b 100644 --- a/Tests/FindThreads/CMakeLists.txt +++ b/Tests/FindThreads/CMakeLists.txt @@ -1,9 +1,11 @@ -add_test(NAME FindThreads.C-only COMMAND ${CMAKE_CTEST_COMMAND} - --build-and-test - "${CMake_SOURCE_DIR}/Tests/FindThreads/C-only" - "${CMake_BINARY_DIR}/Tests/FindThreads/C-only" - ${build_generator_args} - --build-project FindThreads_C-only - --build-options ${build_options} - --test-command ${CMAKE_CTEST_COMMAND} -V - ) +foreach (_lang IN ITEMS C CXX) + add_test(NAME FindThreads.${_lang}-only COMMAND ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/FindThreads/${_lang}-only" + "${CMake_BINARY_DIR}/Tests/FindThreads/${_lang}-only" + ${build_generator_args} + --build-project FindThreads_${_lang}-only + --build-options ${build_options} + --test-command ${CMAKE_CTEST_COMMAND} -V + ) +endforeach () |