From b4a68240db27c0677c1d968aca7973767c70e814 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 22 Aug 2023 12:54:25 -0400 Subject: Tests: Run CTestTest2 in explicit configuration This is needed to support `add_test(NAME)` tests in KWSys. --- Tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $ -S "${CMake_BINARY_DIR}/Tests/CTestTest2/test.cmake" -V --output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log" ) -- cgit v0.12