diff options
author | Brad King <brad.king@kitware.com> | 2015-09-16 14:07:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-17 14:21:08 (GMT) |
commit | 438fabf242bae84dde71d51298b43c2b6fa760eb (patch) | |
tree | a76505f30084069529c34d3aa6ebdeec6dbd7dc9 /Tests/RunCMake/RunCMake.cmake | |
parent | f38625be7a6284495d3617bc64725f2873284b01 (diff) | |
download | CMake-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.cmake | 6 |
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() |