cmake: Don't set CMAKE_SYSTEM_NAME=iOS when configuring with -sdk
The -sdk argument is documented as: Build Qt using Apple provided SDK <sdk>. The argument should be one of the available SDKs as listed by 'xcodebuild -showsdks'. [ChangeLog][configure] The -sdk argument no longer auto-enables the macx-ios-clang makespec. Pass -xplatform macx-ios-clang to explicitly build Qt for iOS. Change-Id: Ia4074015aba2c8296a65534c38eb2f06db32f286 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
d04cf2c58b
commit
70e69f334e
@ -926,7 +926,7 @@ translate_string_input(android-javac-target QT_ANDROID_JAVAC_TARGET)
|
||||
|
||||
translate_string_input(sdk QT_APPLE_SDK)
|
||||
|
||||
if(DEFINED INPUT_sdk OR (DEFINED INPUT_xplatform AND INPUT_xplatform STREQUAL "macx-ios-clang")
|
||||
if((DEFINED INPUT_xplatform AND INPUT_xplatform STREQUAL "macx-ios-clang")
|
||||
OR (DEFINED INPUT_platform AND INPUT_platform STREQUAL "macx-ios-clang"))
|
||||
push("-DCMAKE_SYSTEM_NAME=iOS")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user