summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-02-02 17:10:55 -0500
committerBrad King <brad.king@kitware.com>2010-02-02 17:10:55 -0500
commit09be6c548041f37739a6a9de783b447c2033ad93 (patch)
tree6f6d534aa76b5dfd56000091a2bc23e9bff67399
parent5a0653edfd5dd130fbde19157a575f75aa9b285a (diff)
downloadcmake-09be6c548041f37739a6a9de783b447c2033ad93.tar.gz
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.
-rw-r--r--Tests/CMakeInstall.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CMakeInstall.cmake b/Tests/CMakeInstall.cmake
index f141b53a70..6af574ecc1 100644
--- a/Tests/CMakeInstall.cmake
+++ b/Tests/CMakeInstall.cmake
@@ -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