mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-06 17:05:41 +00:00
Set warnings as errors on Linux
This commit is contained in:
@@ -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`",
|
||||
|
||||
Reference in New Issue
Block a user