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:
Marco Bubke
2023-06-02 09:38:40 +02:00
committed by Eike Ziller
parent d70089485e
commit 94a704bb87
3 changed files with 9 additions and 9 deletions

View File

@@ -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
)