From 369052b5d8c2059529d9b212e4142c064711a3fa Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 31 Jul 2024 15:39:37 -0400 Subject: Tests: Restore suppression of xcodebuild error with Xcode Command-Line Tools In commit 40fa2c1c90 (Tests: Cleanup CMake_TEST_XCODE_VERSION code, 2024-04-29, v3.30.0-rc1~183^2) we accidentally stopped capturing the stderr from `xcodebuild`, causing it to appear in cmake's output. The error is incidental and tolerated, so do not let the user see it. --- Tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 41a3f10..730a7b4 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -307,6 +307,7 @@ if(BUILD_TESTING) execute_process( COMMAND xcodebuild -version OUTPUT_VARIABLE _version + ERROR_VARIABLE _stderr RESULT_VARIABLE _failed ) if(NOT _failed AND _version MATCHES "^Xcode ([0-9]+(\\.[0-9]+)*)") -- cgit v0.12