Merge topic 'test-xcode-command-line-tools' into release-3.30
369052b5d8 Tests: Restore suppression of xcodebuild error with Xcode Command-Line Tools
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9696
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 @@
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]+)*)")