diff options
author | Brad King <brad.king@kitware.com> | 2019-04-10 13:30:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-10 13:40:48 (GMT) |
commit | 44d6370db35c82d182bfc9480f0f0031b6b559ed (patch) | |
tree | f9b25932b20d32a63176a696c600982fd9237e99 | |
parent | 538721939faef01b00ffd20416e8f7146d7368ac (diff) | |
download | CMake-44d6370db35c82d182bfc9480f0f0031b6b559ed.zip CMake-44d6370db35c82d182bfc9480f0f0031b6b559ed.tar.gz CMake-44d6370db35c82d182bfc9480f0f0031b6b559ed.tar.bz2 |
Tests: Add RunCMake helper to run cmake with options
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index 5d49909..ad3f8f6 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/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}) |