From 09be6c548041f37739a6a9de783b447c2033ad93 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 2 Feb 2010 17:10:55 -0500 Subject: [PATCH] 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. --- Tests/CMakeInstall.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/CMakeInstall.cmake b/Tests/CMakeInstall.cmake index f141b53a7..6af574ecc 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