mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
Tests: Add RunCMake helper to run cmake with options
This commit is contained in:
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user