Browse Source

Tests: Fix re-running CTestCoverageCollectGCOV on in-source build

Do not remove the test binary directory if it contains `CMakeCache.txt`.
Otherwise in an in-source build we remove the source directory too.
Brad King 5 years ago
parent
commit
81e83510a0
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Tests/CTestCoverageCollectGCOV/test.cmake.in

+ 0 - 2
Tests/CTestCoverageCollectGCOV/test.cmake.in

@@ -3,8 +3,6 @@ set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestCoverageCollectGCOV/Te
 set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestCoverageCollectGCOV/TestProject")
 set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
 
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
 ctest_start(Experimental)
 ctest_configure()
 ctest_build()