소스 검색

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})