Set warnings as errors on Linux
This commit is contained in:
parent
f8c8beb3cb
commit
a2e16b8e6c
@ -37,6 +37,12 @@ solution "recastnavigation"
|
|||||||
configuration "windows"
|
configuration "windows"
|
||||||
defines { "WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS" }
|
defines { "WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS" }
|
||||||
|
|
||||||
|
-- linux specific
|
||||||
|
configuration { "linux", "gmake" }
|
||||||
|
buildoptions {
|
||||||
|
"-Wall",
|
||||||
|
"-Werror"
|
||||||
|
}
|
||||||
|
|
||||||
project "DebugUtils"
|
project "DebugUtils"
|
||||||
language "C++"
|
language "C++"
|
||||||
@ -215,7 +221,8 @@ project "Tests"
|
|||||||
buildoptions {
|
buildoptions {
|
||||||
"`pkg-config --cflags sdl2`",
|
"`pkg-config --cflags sdl2`",
|
||||||
"`pkg-config --cflags gl`",
|
"`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 {
|
linkoptions {
|
||||||
"`pkg-config --libs sdl2`",
|
"`pkg-config --libs sdl2`",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user