configure: Bail out early if Xcode is not installed on macOS
Currently, configure fails late with Qt requires at least version 15 of Xcode, you're building against version . Please upgrade. Pick-to: 6.9 Change-Id: Ic4f44d37429ac9def785a50909a25b0bcb4b72a5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
ae6ba06e55
commit
d1e030f6f5
@ -907,6 +907,12 @@ function(_qt_internal_get_xcode_version_raw out_var)
|
|||||||
|
|
||||||
string(REPLACE "\n" " " xcode_version "${xcode_version}")
|
string(REPLACE "\n" " " xcode_version "${xcode_version}")
|
||||||
string(STRIP "${xcode_version}" xcode_version)
|
string(STRIP "${xcode_version}" xcode_version)
|
||||||
|
|
||||||
|
if(NOT xcode_version)
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"Can't determine Xcode version. Is Xcode installed?"
|
||||||
|
" Error details:\n${xcrun_error}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set(${out_var} "${xcode_version}" PARENT_SCOPE)
|
set(${out_var} "${xcode_version}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user