summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/RunCMake.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-16 14:07:49 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-17 14:21:08 (GMT)
commit438fabf242bae84dde71d51298b43c2b6fa760eb (patch)
treea76505f30084069529c34d3aa6ebdeec6dbd7dc9 /Tests/RunCMake/RunCMake.cmake
parentf38625be7a6284495d3617bc64725f2873284b01 (diff)
downloadCMake-438fabf242bae84dde71d51298b43c2b6fa760eb.zip
CMake-438fabf242bae84dde71d51298b43c2b6fa760eb.tar.gz
CMake-438fabf242bae84dde71d51298b43c2b6fa760eb.tar.bz2
Tests: Teach RunCMake infrastructure to use custom check.cmake file
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r--Tests/RunCMake/RunCMake.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index e2ad503..db9911d 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -115,7 +115,11 @@ function(run_cmake test)
endif()
endforeach()
unset(RunCMake_TEST_FAILED)
- include(${top_src}/${test}-check.cmake OPTIONAL)
+ if(RunCMake-check-file AND EXISTS ${top_src}/${RunCMake-check-file})
+ include(${top_src}/${RunCMake-check-file})
+ else()
+ include(${top_src}/${test}-check.cmake OPTIONAL)
+ endif()
if(RunCMake_TEST_FAILED)
set(msg "${RunCMake_TEST_FAILED}\n${msg}")
endif()