Tests: Add RunCMake helper to run cmake with options

This commit is contained in:
Brad King
2019-04-10 09:30:46 -04:00
parent 538721939f
commit 44d6370db3
+5
View File
@@ -188,5 +188,10 @@ function(run_cmake_command test)
run_cmake(${test}) run_cmake(${test})
endfunction() endfunction()
function(run_cmake_with_options test)
set(RunCMake_TEST_OPTIONS "${ARGN}")
run_cmake(${test})
endfunction()
# Protect RunCMake tests from calling environment. # Protect RunCMake tests from calling environment.
unset(ENV{MAKEFLAGS}) unset(ENV{MAKEFLAGS})