From 5ecf7f50edb4d4b7075651951c43ff2e6f9a3c4f Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Thu, 31 Jul 2014 21:12:45 +0200 Subject: [PATCH] premake.lua: relax warnings for GTest and perftest (fixes #86) For the "test" solution, the "gtest" and "perftest" projects contain third-party code. Relax the warning settings for "gmake" for these projects to avoid build failures due to third-party code. --- build/premake4.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/premake4.lua b/build/premake4.lua index 4f7d77f..822804c 100644 --- a/build/premake4.lua +++ b/build/premake4.lua @@ -64,7 +64,7 @@ solution "test" defines { "_CRT_SECURE_NO_WARNINGS" } configuration "gmake" - buildoptions "-msse4.2 -Werror -Wall -Wextra" + buildoptions "-msse4.2 -Wall -Wextra" project "gtest" kind "StaticLib" @@ -87,7 +87,7 @@ solution "test" kind "ConsoleApp" if _ACTION == "gmake" then - buildoptions "-Weffc++ -Wswitch-default" + buildoptions "-Werror -Weffc++ -Wswitch-default" end files {