From a2e16b8e6c31eaa5688c9aa125e22b686caee333 Mon Sep 17 00:00:00 2001 From: Ben Hymers Date: Thu, 12 Jan 2017 11:38:36 +0000 Subject: [PATCH] Set warnings as errors on Linux --- RecastDemo/premake5.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RecastDemo/premake5.lua b/RecastDemo/premake5.lua index 6519a9c..7f6e00d 100644 --- a/RecastDemo/premake5.lua +++ b/RecastDemo/premake5.lua @@ -37,6 +37,12 @@ solution "recastnavigation" configuration "windows" defines { "WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS" } + -- linux specific + configuration { "linux", "gmake" } + buildoptions { + "-Wall", + "-Werror" + } project "DebugUtils" language "C++" @@ -215,7 +221,8 @@ project "Tests" buildoptions { "`pkg-config --cflags sdl2`", "`pkg-config --cflags gl`", - "`pkg-config --cflags glu`" + "`pkg-config --cflags glu`", + "-Wno-parentheses" -- Disable parentheses warning for the Tests target, as Catch's macros generate this everywhere. } linkoptions { "`pkg-config --libs sdl2`",