From 438fabf242bae84dde71d51298b43c2b6fa760eb Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Sep 2015 10:07:49 -0400 Subject: Tests: Teach RunCMake infrastructure to use custom check.cmake file --- Tests/RunCMake/RunCMake.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v0.12