diff options
author | Brad King <brad.king@kitware.com> | 2023-08-22 16:54:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-08-22 17:45:42 (GMT) |
commit | b4a68240db27c0677c1d968aca7973767c70e814 (patch) | |
tree | 5ef582c8b6e357d9cf082396c6bf8970050d8100 /Tests/CMakeLists.txt | |
parent | 46d0ec37283485a088c7be4614e1e6ac13cda048 (diff) | |
download | CMake-b4a68240db27c0677c1d968aca7973767c70e814.zip CMake-b4a68240db27c0677c1d968aca7973767c70e814.tar.gz CMake-b4a68240db27c0677c1d968aca7973767c70e814.tar.bz2 |
Tests: Run CTestTest2 in explicit configuration
This is needed to support `add_test(NAME)` tests in KWSys.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index f5ce6d9..d9fa0e1 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -3278,7 +3278,7 @@ if(BUILD_TESTING) if(NOT CMake_TEST_EXTERNAL_CMAKE) configure_file("${CMake_SOURCE_DIR}/Tests/CTestTest2/test.cmake.in" "${CMake_BINARY_DIR}/Tests/CTestTest2/test.cmake" @ONLY ESCAPE_QUOTES) - add_test(CTestTest2 ${CMAKE_CTEST_COMMAND} + add_test(NAME CTestTest2 COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG> -S "${CMake_BINARY_DIR}/Tests/CTestTest2/test.cmake" -V --output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log" ) |