ENH: Pass ctest config type to subprocesses
This commit is contained in:
parent
6ab962b348
commit
b7a2d11f2d
|
@ -807,18 +807,21 @@ IF(BUILD_TESTING)
|
||||||
ADD_TEST(CTestTest ${CMAKE_CTEST_COMMAND}
|
ADD_TEST(CTestTest ${CMAKE_CTEST_COMMAND}
|
||||||
-S "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" -V
|
-S "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" -V
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest/testOutput.log"
|
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest/testOutput.log"
|
||||||
|
-C "\${CTEST_CONFIGURATION_TYPE}"
|
||||||
)
|
)
|
||||||
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(CTestTest2 ${CMAKE_CTEST_COMMAND}
|
||||||
-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"
|
||||||
|
-C "\${CTEST_CONFIGURATION_TYPE}"
|
||||||
)
|
)
|
||||||
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest3/test.cmake.in"
|
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest3/test.cmake.in"
|
||||||
"${CMake_BINARY_DIR}/Tests/CTestTest3/test.cmake" @ONLY ESCAPE_QUOTES)
|
"${CMake_BINARY_DIR}/Tests/CTestTest3/test.cmake" @ONLY ESCAPE_QUOTES)
|
||||||
ADD_TEST(CTestTest3 ${CMAKE_CTEST_COMMAND}
|
ADD_TEST(CTestTest3 ${CMAKE_CTEST_COMMAND}
|
||||||
-S "${CMake_BINARY_DIR}/Tests/CTestTest3/test.cmake" -V
|
-S "${CMake_BINARY_DIR}/Tests/CTestTest3/test.cmake" -V
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest3/testOutput.log"
|
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest3/testOutput.log"
|
||||||
|
-C "\${CTEST_CONFIGURATION_TYPE}"
|
||||||
)
|
)
|
||||||
ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS)
|
ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue