diff options
author | Brad King <brad.king@kitware.com> | 2024-07-31 19:39:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-07-31 19:43:04 (GMT) |
commit | 369052b5d8c2059529d9b212e4142c064711a3fa (patch) | |
tree | 2be13729c4c14fef41ca11c13c225d0b0cb88331 /Tests | |
parent | bab6bc54a86345481bf0d923db9ee1e600fade9e (diff) | |
download | CMake-369052b5d8c2059529d9b212e4142c064711a3fa.zip CMake-369052b5d8c2059529d9b212e4142c064711a3fa.tar.gz CMake-369052b5d8c2059529d9b212e4142c064711a3fa.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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]+)*)") |