QmlDeesigner: Add feature to disable error on warnings

Change-Id: Idc0cbf2c6fd4069d84fe18de190d91ed94610a8a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marco Bubke
2023-04-17 14:46:03 +02:00
parent 86e2426ac6
commit d14c38e873
3 changed files with 49 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
add_qtc_plugin(QmlProjectManager
CONDITION TARGET Qt5::QuickWidgets
PROPERTIES COMPILE_WARNING_AS_ERROR ON
PLUGIN_CLASS QmlProjectPlugin
DEPENDS QmlJS Qt5::QuickWidgets Utils
PLUGIN_DEPENDS Core ProjectExplorer QtSupport QmlDesignerBase
@@ -26,6 +25,11 @@ add_qtc_plugin(QmlProjectManager
"${PROJECT_SOURCE_DIR}/src/share/3rdparty/studiofonts/studiofonts.qrc"
)
extend_qtc_plugin(QmlProjectManager
CONDITION NOT DISABLE_COMPILE_WARNING_AS_ERROR
PROPERTIES COMPILE_WARNING_AS_ERROR ON
)
extend_qtc_plugin(QmlProjectManager
PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/buildsystem
SOURCES_PREFIX ${CMAKE_CURRENT_LIST_DIR}/buildsystem