diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2015-09-22 15:50:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-25 14:08:35 (GMT) |
commit | fff9434d455600320be1809c6d64577eeb21d6aa (patch) | |
tree | 4361b549a5831e97aed0b01a7298056cc8410210 /Tests/FindThreads/CMakeLists.txt | |
parent | 66db914adfd8cbb846fcf82e290fe006a800a36d (diff) | |
download | CMake-fff9434d455600320be1809c6d64577eeb21d6aa.zip CMake-fff9434d455600320be1809c6d64577eeb21d6aa.tar.gz CMake-fff9434d455600320be1809c6d64577eeb21d6aa.tar.bz2 |
FindThreads: officially announce it works with only C++ enabled
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 () |