From 0cde3d93f1107a62b8313cf4201e3612210d1f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 9 Nov 2021 17:13:51 +0100 Subject: [PATCH] cmake: Don't notify/warn the user when Xcode is not found We can technically build without Xcode, as long as the command line tools are installed. We reflect that by an empty QT_MAC_XCODE_VERSION variable. Change-Id: I40ffa28a628157e0a2c63656065ea7c41a680e01 Reviewed-by: Alexandru Croitor (cherry picked from commit 9991ca91633d77a86b31b594897aa871b6151888) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtAutoDetect.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmake/QtAutoDetect.cmake b/cmake/QtAutoDetect.cmake index ce87560a852..84500350843 100644 --- a/cmake/QtAutoDetect.cmake +++ b/cmake/QtAutoDetect.cmake @@ -331,9 +331,6 @@ function(qt_internal_get_xcode_version out_var) execute_process(COMMAND /usr/bin/xcrun xcodebuild -version OUTPUT_VARIABLE xcode_version ERROR_VARIABLE xcrun_error) - if(NOT xcode_version) - message(NOTICE "Can't determine Xcode version. Error: ${xcrun_error}") - endif() string(REPLACE "\n" " " xcode_version "${xcode_version}") string(STRIP "${xcode_version}" xcode_version) set(${out_var} "${xcode_version}" PARENT_SCOPE)