diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-02-01 15:44:06 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-17 11:42:37 +0000 |
commit | 6a533065110b639105c84330c1668ebd4acea266 (patch) | |
tree | 547228af0e860e4779399b8d0b0912c2380abdbc | |
parent | a9dcd2a0377424550c538f61f4182d3a495bcab2 (diff) |
configure: Tie -appstore-compliant to QT_APPLE_NO_PRIVATE_APIS
Change-Id: Ieb0f7398498483d5b48a16623dfc28bb6fb55f0b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 2a192c5f18d7ddd8d57ba0cd2cf09b4b9c6ce826)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | configure.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index c7c04a5e89..251da236cb 100644 --- a/configure.cmake +++ b/configure.cmake @@ -506,6 +506,9 @@ qt_feature("appstore-compliant" PUBLIC PURPOSE "Disables code that is not allowed in platform app stores" AUTODETECT UIKIT OR ANDROID ) +if(APPLE) + qt_feature_definition("appstore-compliant" "QT_APPLE_NO_PRIVATE_APIS") +endif() qt_feature("simulator_and_device" PUBLIC LABEL "Build for both simulator and device" CONDITION UIKIT AND NOT QT_UIKIT_SDK |