Avoid CTest 2.6.4 dashboard script crash
CTest 2.6.4 crashes if a dashboard script invokes "message()" after "ctest_test()" or anything else that creates an inner cmCTest object. The CMake.Install test drives installation using --build-and-test with the outer CTest driving CMake tests. We add --force-new-ctest-process to avoid creation of a cmCTest object inside the outer CTest just in case it is 2.6.4.
This commit is contained in:
parent
5a0653edfd
commit
09be6c5480
|
@ -33,6 +33,7 @@ if(CMake_TEST_INSTALL)
|
|||
add_test(CMake.Install
|
||||
${CMake_TEST_INSTALL_CTest}
|
||||
${CMake_TEST_INSTALL_CONFIG}
|
||||
--force-new-ctest-process
|
||||
--build-and-test ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
|
||||
--build-generator ${CMAKE_GENERATOR} # Not CMAKE_TEST_GENERATOR
|
||||
--build-project CMake
|
||||
|
|
Loading…
Reference in New Issue