forked from qt-creator/qt-creator
QmlDesigner: Only enable error on warnings as you compile with tests or in debug
There is no advantage for an enduser to get errors on warnings because
he cannot do much about it. It is still nudging the developers to fix
the warnings.
Task-number: QTCREATORBUG-29238
Change-Id: If9f73f2766d686b119cd264ee7b3c3c9afa2c70d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
(cherry picked from commit ff2a14917f)
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -25,7 +25,7 @@ add_qtc_plugin(QmlProjectManager
|
||||
)
|
||||
|
||||
extend_qtc_plugin(QmlProjectManager
|
||||
CONDITION NOT DISABLE_COMPILE_WARNING_AS_ERROR
|
||||
CONDITION (NOT DISABLE_COMPILE_WARNING_AS_ERROR) AND ($<CONFIG:Debug> OR WITH_TESTS)
|
||||
PROPERTIES COMPILE_WARNING_AS_ERROR ON
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user