summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCTest.cmake
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-20 16:08:02 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2018-11-20 20:43:27 (GMT)
commit1ca53f5ef1335561d952603d48c48da549d41271 (patch)
tree9dfc00d708c60b0700a6a4a813e3be4bf529cc76 /Tests/RunCMake/RunCTest.cmake
parent15ac4aae0e3199fe8ac7f46cf4eb064cbeb1660d (diff)
downloadCMake-1ca53f5ef1335561d952603d48c48da549d41271.zip
CMake-1ca53f5ef1335561d952603d48c48da549d41271.tar.gz
CMake-1ca53f5ef1335561d952603d48c48da549d41271.tar.bz2
Remove unnecessary CTEST_PROJECT_NAME variables
Diffstat (limited to 'Tests/RunCMake/RunCTest.cmake')
-rw-r--r--Tests/RunCMake/RunCTest.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/RunCTest.cmake b/Tests/RunCMake/RunCTest.cmake
index 89e16ee..c2c31d1 100644
--- a/Tests/RunCMake/RunCTest.cmake
+++ b/Tests/RunCMake/RunCTest.cmake
@@ -3,8 +3,10 @@ include(RunCMake)
function(run_ctest CASE_NAME)
configure_file(${RunCMake_SOURCE_DIR}/test.cmake.in
${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake @ONLY)
- configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
- ${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
+ if(EXISTS "${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in")
+ configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
+ ${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
+ endif()
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}