QmlDesigner: Disable warnings-as-errors by default

for everyone that doesn't explicitly set the BUILD_DESIGNSTUDIO CMake
variable or the corresponding environment variable or CMake option.

Fixes: QTCREATORBUG-29238
Change-Id: Ie1959a468fc7bee0fed790b025ecdb3f49ab8f08
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Eike Ziller
2023-06-27 11:43:07 +02:00
parent 94a704bb87
commit d1649b060b
3 changed files with 18 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ add_qtc_plugin(QmlProjectManager
)
extend_qtc_plugin(QmlProjectManager
CONDITION (NOT DISABLE_COMPILE_WARNING_AS_ERROR) AND ($<CONFIG:Debug> OR WITH_TESTS)
CONDITION ENABLE_COMPILE_WARNING_AS_ERROR
PROPERTIES COMPILE_WARNING_AS_ERROR ON
)