summaryrefslogtreecommitdiffstats
path: root/cmake/QtPluginHelpers.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-07-15 13:04:15 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-07-16 09:52:24 +0200
commit3595613a0a285120b1c475e7c350a0de871e89aa (patch)
tree7ba00ca3aa8793c7b499b1d9fb712a41cf7802d3 /cmake/QtPluginHelpers.cmake
parent616c32be04b8cee16354283d22dfe5cef890d435 (diff)
CMake: Don't propagate -fapplication-extension to user projects
Both the compiler and linker -fapplication-extension flag should only be applied when building Qt's libraries (not executables). It's up to the user project whether their code will be restricted with application-extension-only APIs. In qmake that can be achieved by adding to the qmake project CONFIG += app_extension_api_only In CMake it can be achieved by either adding the compiler and link flags in the project directly (using target_X_options) or by setting the appropriate setting in the Xcode project when using the Xcode generator. Amends e189126f1ae1d2fa2ad0f95ee2c4aa72c770a97b Pick-to: 6.2 Task-number: QTBUG-95199 Change-Id: Ie7a764d460a89c7650391abff0fcc5abfcabef64 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtPluginHelpers.cmake')
-rw-r--r--cmake/QtPluginHelpers.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake
index 23e3de8f88..1b92a638a0 100644
--- a/cmake/QtPluginHelpers.cmake
+++ b/cmake/QtPluginHelpers.cmake
@@ -76,6 +76,7 @@ function(qt_internal_add_plugin target)
${ARGN}
)
qt6_add_plugin(${target} ${plugin_args})
+ qt_internal_mark_as_internal_library(${target})
qt_get_sanitized_plugin_type("${arg_TYPE}" plugin_type_escaped)