mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-07 16:20:51 +00:00
RunCMake: Allow error output suppression from run_cmake
This commit is contained in:
@@ -105,6 +105,9 @@ function(run_cmake test)
|
|||||||
else()
|
else()
|
||||||
set(maybe_input_file "")
|
set(maybe_input_file "")
|
||||||
endif()
|
endif()
|
||||||
|
if (RunCMake_QUIET_ERROR)
|
||||||
|
set(maybe_quiet_error "ERROR_QUIET")
|
||||||
|
endif()
|
||||||
if(NOT RunCMake_TEST_COMMAND)
|
if(NOT RunCMake_TEST_COMMAND)
|
||||||
if(NOT DEFINED RunCMake_TEST_OPTIONS)
|
if(NOT DEFINED RunCMake_TEST_OPTIONS)
|
||||||
set(RunCMake_TEST_OPTIONS "")
|
set(RunCMake_TEST_OPTIONS "")
|
||||||
@@ -157,6 +160,7 @@ function(run_cmake test)
|
|||||||
ENCODING UTF8
|
ENCODING UTF8
|
||||||
${maybe_timeout}
|
${maybe_timeout}
|
||||||
${maybe_input_file}
|
${maybe_input_file}
|
||||||
|
${maybe_quiet_error}
|
||||||
)]])
|
)]])
|
||||||
else()
|
else()
|
||||||
set(expect_result "")
|
set(expect_result "")
|
||||||
|
|||||||
Reference in New Issue
Block a user