Set warnings as errors on Linux

This commit is contained in:
Ben Hymers 2017-01-12 11:38:36 +00:00 committed by Ben Hymers
parent f8c8beb3cb
commit a2e16b8e6c

View File

@ -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`",