diff options
author | Tor Arne Vestbø <torarnv@gmail.com> | 2021-11-09 17:13:51 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-10 13:47:42 +0000 |
commit | 9991ca91633d77a86b31b594897aa871b6151888 (patch) | |
tree | 3986707596e7b08170824928b002ed768ad98a49 /cmake | |
parent | 3582116a6036fc04d7895e33a853348b37598117 (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.
Pick-to: 6.2
Change-Id: I40ffa28a628157e0a2c63656065ea7c41a680e01
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
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) |