From 6674be6d26caa885729f8944c15a7c50ef79b5d8 Mon Sep 17 00:00:00 2001 From: Martin Duffy Date: Thu, 4 Jun 2026 10:34:40 -0400 Subject: [PATCH] RunCMake: Allow error output suppression from run_cmake --- Tests/RunCMake/RunCMake.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index b849634efb..bf83507049 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -105,6 +105,9 @@ function(run_cmake test) else() set(maybe_input_file "") endif() + if (RunCMake_QUIET_ERROR) + set(maybe_quiet_error "ERROR_QUIET") + endif() if(NOT RunCMake_TEST_COMMAND) if(NOT DEFINED RunCMake_TEST_OPTIONS) set(RunCMake_TEST_OPTIONS "") @@ -157,6 +160,7 @@ function(run_cmake test) ENCODING UTF8 ${maybe_timeout} ${maybe_input_file} + ${maybe_quiet_error} )]]) else() set(expect_result "")