summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCTest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/RunCTest.cmake')
-rw-r--r--Tests/RunCMake/RunCTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCTest.cmake b/Tests/RunCMake/RunCTest.cmake
index c2c31d1..98fdf20 100644
--- a/Tests/RunCMake/RunCTest.cmake
+++ b/Tests/RunCMake/RunCTest.cmake
@@ -6,6 +6,8 @@ function(run_ctest CASE_NAME)
if(EXISTS "${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in")
configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
+ else()
+ file(REMOVE ${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake)
endif()
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)