From 639094624fb756c3e8eab7e4e754ed404b2dbdc2 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Wed, 25 Nov 2015 15:03:58 +0100 Subject: [PATCH] Allow no-warnings-as-errors for vc too --- compiler.pri | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler.pri b/compiler.pri index 338148379..4d64378cc 100644 --- a/compiler.pri +++ b/compiler.pri @@ -45,9 +45,10 @@ win32 { error("The INCLUDE environment variable is not set. Are you not in a build environment?") } - # Treat warnings as errors - QMAKE_CFLAGS *= -WX - QMAKE_CXXFLAGS *= -WX + !CONFIG(no-warnings-as-errors) { + QMAKE_CFLAGS *= -WX + QMAKE_CXXFLAGS *= -WX + } # Increase PCH heap to 150MB: https://msdn.microsoft.com/en-us/library/bdscwf1c.aspx QMAKE_CFLAGS *= -Zm200