Explorar o código

Tests: Add RunCMake helper to run cmake with options

Brad King %!s(int64=6) %!d(string=hai) anos
pai
achega
44d6370db3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Tests/RunCMake/RunCMake.cmake

+ 5 - 0
Tests/RunCMake/RunCMake.cmake

@@ -188,5 +188,10 @@ function(run_cmake_command test)
   run_cmake(${test})
 endfunction()
 
+function(run_cmake_with_options test)
+  set(RunCMake_TEST_OPTIONS "${ARGN}")
+  run_cmake(${test})
+endfunction()
+
 # Protect RunCMake tests from calling environment.
 unset(ENV{MAKEFLAGS})