mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 12:53:55 +08:00
Tests: Run CTestTest2 in explicit configuration
This is needed to support `add_test(NAME)` tests in KWSys.
This commit is contained in:
@@ -3278,7 +3278,7 @@ if(BUILD_TESTING)
|
|||||||
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||||
configure_file("${CMake_SOURCE_DIR}/Tests/CTestTest2/test.cmake.in"
|
configure_file("${CMake_SOURCE_DIR}/Tests/CTestTest2/test.cmake.in"
|
||||||
"${CMake_BINARY_DIR}/Tests/CTestTest2/test.cmake" @ONLY ESCAPE_QUOTES)
|
"${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
|
-S "${CMake_BINARY_DIR}/Tests/CTestTest2/test.cmake" -V
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log"
|
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest2/testOutput.log"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user