diff options
author | Tor Arne Vestbø <torarnv@gmail.com> | 2021-11-09 17:13:51 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-11-11 00:40:06 +0000 |
commit | 0cde3d93f1107a62b8313cf4201e3612210d1f8a (patch) | |
tree | 21c7f6e7b8f318babcef0de8b795e54a338cbc12 /cmake | |
parent | de2395d757fb80a92dfb2572f4c249e370fba37f (diff) |
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 <alexandru.croitor@qt.io>
(cherry picked from commit 9991ca91633d77a86b31b594897aa871b6151888)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtAutoDetect.cmake | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake/QtAutoDetect.cmake b/cmake/QtAutoDetect.cmake index ce87560a85..8450035084 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) |