浏览代码

Tests: Add RunCMake helper to run cmake with options

Brad King 6 年之前
父节点
当前提交
44d6370db3
共有 1 个文件被更改,包括 5 次插入0 次删除
  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})