summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-07-09 13:07:25 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-12 18:48:44 +0000
commitc87c9d7b3f15a61dd5dbc25defe3bd89a49882e2 (patch)
tree005143bd13db8e10a44bd45e00497380d264e46d /cmake
parenta06c1a71123d74d3e4450ecff6325dc1ebd57d70 (diff)
Warn on any PUBLIC usage requirements specified for Qt plugins
Repositories have been changed to be free of this warning. We're now changing the default of QT_WARN_PLUGIN_PUBLIC_KEYWORDS to ON. Set this variable to OFF to disable the warnings. Change-Id: Ie37a4df1032f5b1e9152d970e8a14c574ed70241 Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 8ac8d812f727b2ebdcaca070801509f3d21e9c3c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtPluginHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake
index 11bfbfea11..23e3de8f88 100644
--- a/cmake/QtPluginHelpers.cmake
+++ b/cmake/QtPluginHelpers.cmake
@@ -48,7 +48,7 @@ function(qt_internal_add_plugin target)
# Put this behind a cache option for now. It's too noisy for general use
# until most repos are updated.
- option(QT_WARN_PLUGIN_PUBLIC_KEYWORDS "Warn if a plugin specifies a PUBLIC keyword")
+ option(QT_WARN_PLUGIN_PUBLIC_KEYWORDS "Warn if a plugin specifies a PUBLIC keyword" ON)
if(QT_WARN_PLUGIN_PUBLIC_KEYWORDS)
foreach(publicKeyword IN LISTS __default_public_args)
if(NOT "${arg_${publicKeyword}}" STREQUAL "")