Tests: Teach RunCMake infrastructure to use custom check.cmake file
This commit is contained in:
parent
f38625be7a
commit
438fabf242
|
@ -115,7 +115,11 @@ function(run_cmake test)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
unset(RunCMake_TEST_FAILED)
|
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)
|
if(RunCMake_TEST_FAILED)
|
||||||
set(msg "${RunCMake_TEST_FAILED}\n${msg}")
|
set(msg "${RunCMake_TEST_FAILED}\n${msg}")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue