Fix a bug in detecting system
Since QtAutoDetect is called before the project, we still don't have access to our IOS, WATCHOS, TVOS variables, and we must use CMAKE_SYSTEM_NAME variable instead. Pick-to: 6.4 Change-Id: I61afe216baec85b3fcd489957f4b6774134f8078 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
17ab4045ca
commit
626ebf4738
@ -274,7 +274,7 @@ endfunction()
|
||||
|
||||
function(qt_internal_get_darwin_sdk_version out_var)
|
||||
if(APPLE)
|
||||
if(IOS)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL iOS)
|
||||
set(sdk_name "iphoneos")
|
||||
else()
|
||||
# Default to macOS
|
||||
|
Loading…
x
Reference in New Issue
Block a user