Make missing XCode a warning instead of an error

This fixes the macOS build when you only have the CommandLineTools installed.

Change-Id: I620bc535b508b604a875f53dec8c57af23efeac1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Alex Richardson 2020-07-24 18:18:06 +01:00 committed by Alex Richardson
parent 841f05fae6
commit 99ebbaead7

View File

@ -222,7 +222,7 @@ function(qt_internal_get_xcode_version out_var)
OUTPUT_VARIABLE xcode_version
ERROR_VARIABLE xcrun_error)
if(NOT xcode_version)
message(FATAL_ERROR "Can't determine Xcode version. Error: ${xcrun_error}")
message(WARNING "Can't determine Xcode version. Error: ${xcrun_error}")
endif()
string(REPLACE "\n" " " xcode_version "${xcode_version}")
string(STRIP "${xcode_version}" xcode_version)