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.
This commit is contained in:
Brad King
2024-07-31 15:43:04 -04:00
parent bab6bc54a8
commit 369052b5d8
+1
View File
@@ -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]+)*)")