From 9aa0f3f8d142d27ffcc6f842a05e0de970dc304f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 10 Jan 2023 09:20:42 +0200 Subject: [PATCH] Property to disable pedantic build. --- qbs/modules/buildconfig/buildconfig.qbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qbs/modules/buildconfig/buildconfig.qbs b/qbs/modules/buildconfig/buildconfig.qbs index f1a141100..20cb715d2 100644 --- a/qbs/modules/buildconfig/buildconfig.qbs +++ b/qbs/modules/buildconfig/buildconfig.qbs @@ -28,6 +28,8 @@ Module { readonly property bool ccachePCHSupport: ccache.pchSupport readonly property bool buildWithCcache: enableCcache && (enablePCH && ccachePresent && ccachePCHSupport || (!enablePCH && ccachePresent)) + property bool treatWarningsAsErrors: true + property string libDirName: "lib" property string appTarget @@ -164,7 +166,7 @@ Module { Properties { condition: qbs.buildVariant === "debug" cpp.warningLevel: "all" - cpp.treatWarningsAsErrors: true + cpp.treatWarningsAsErrors: treatWarningsAsErrors } property stringList debugFlags: {