From 8ac8d812f727b2ebdcaca070801509f3d21e9c3c Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 9 Jul 2021 13:07:25 +0200 Subject: 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 Reviewed-by: Alexandru Croitor --- cmake/QtPluginHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/QtPluginHelpers.cmake') 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 "") -- cgit v1.2.3