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. Change-Id: Ic4f44d37429ac9def785a50909a25b0bcb4b72a5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit d1e030f6f53f630819c7ec0729f83ede1e37e3b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1e486c14d4
commit
09f68238d4
@ -907,6 +907,12 @@ function(_qt_internal_get_xcode_version_raw out_var)
|
||||
|
||||
string(REPLACE "\n" " " 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()
|
||||
set(${out_var} "${xcode_version}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user