diff options
author | Kai Koehne <kai.koehne@qt.io> | 2019-06-05 11:50:55 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2019-06-05 13:03:40 +0000 |
commit | e5d66406928c9baa190cd2e57783849d8ad67fd5 (patch) | |
tree | 0c964d805ab20e66aae857dfd7c28f29cc45cf81 /cmake/QtBuild.cmake | |
parent | 019dac8f9d1ca314f40dccf413d8f0cdb88a915b (diff) |
Cmake: Disable warnings when building Qt plugins
This mirrors what happens for qmake. qt_plugin.prf does not
define these, but qt_module.prf does.
Change-Id: I742d3c766f6f4bd129fa6ccf85b5a67c6758e819
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake/QtBuild.cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 842333485c..acc36276bb 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -1452,12 +1452,7 @@ function(add_qt_plugin target) PUBLIC_LIBRARIES ${arg_PUBLIC_LIBRARIES} DEFINES ${arg_DEFINES} - QT_NO_CAST_TO_ASCII QT_ASCII_CAST_WARNINGS - QT_MOC_COMPAT #we don't need warnings from calling moc code in our generated code - QT_USE_QSTRINGBUILDER QT_DEPRECATED_WARNINGS - QT_BUILDING_QT - QT_BUILD_${module_define}_LIB ### FIXME: use QT_BUILD_ADDON for Add-ons or remove if we don't have add-ons anymore "${deprecation_define}" "${static_plugin_define}" QT_PLUGIN |