diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-07-09 13:07:25 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-07-12 19:49:13 +0200 |
commit | 8ac8d812f727b2ebdcaca070801509f3d21e9c3c (patch) | |
tree | e70e81e14f91d1caa0fc68c57f71dba42fa552aa /cmake/QtPluginHelpers.cmake | |
parent | d6387e68a2d93dd6a4d6f8530f5b4ef1c7164c23 (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.
Pick-to: 6.2
Change-Id: Ie37a4df1032f5b1e9152d970e8a14c574ed70241
Reviewed-by: Craig Scott <craig.scott@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtPluginHelpers.cmake')
-rw-r--r-- | cmake/QtPluginHelpers.cmake | 2 |
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 "") |