CMake: Allow enabling Apple app extension API in other repos
It's needed in qtconnectivity, but currently the qt_disable_apple_app_extension_api_only function is defined in QtInternalTargets.cmake which is loaded only in qtbase. Move the function to cmake/QtTargetHelpers.cmake. Amends e189126f1ae1d2fa2ad0f95ee2c4aa72c770a97b Pick-to: 6.1 Change-Id: Ia2470e48a91385239394368780f5bbb223000113 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
7c65935810
commit
393f45de90
@ -318,8 +318,5 @@ function(qt_handle_apple_app_extension_api_only)
|
||||
target_link_options(PlatformPluginInternal INTERFACE ${flags})
|
||||
endif()
|
||||
endfunction()
|
||||
function(qt_disable_apple_app_extension_api_only target)
|
||||
set_target_properties("${target}" PROPERTIES QT_NO_APP_EXTENSION_ONLY_API TRUE)
|
||||
endfunction()
|
||||
|
||||
qt_handle_apple_app_extension_api_only()
|
||||
|
@ -580,3 +580,7 @@ function(qt_internal_force_macos_intel_arch target)
|
||||
set_target_properties(${target} PROPERTIES OSX_ARCHITECTURES "${arches}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(qt_disable_apple_app_extension_api_only target)
|
||||
set_target_properties("${target}" PROPERTIES QT_NO_APP_EXTENSION_ONLY_API TRUE)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user