Fastlz fix for -Wno-class-memaccess' is valid for C++/ObjC++ but not for C (#479)
* Added a selective filter for *.c files compiled on linux using make Co-authored-by: Graham Pentheny <graham.pentheny@gmail.com>
This commit is contained in:
parent
b0d71bed92
commit
e6b675bb9a
@ -156,8 +156,6 @@ project "RecastDemo"
|
||||
"`pkg-config --cflags gl`",
|
||||
"`pkg-config --cflags glu`",
|
||||
"-Wno-ignored-qualifiers",
|
||||
"-Wno-error=class-memaccess"
|
||||
|
||||
}
|
||||
linkoptions {
|
||||
"`pkg-config --libs sdl2`",
|
||||
@ -165,6 +163,11 @@ project "RecastDemo"
|
||||
"`pkg-config --libs glu`"
|
||||
}
|
||||
|
||||
filter { "system:linux", "action:gmake*", "files:*.c" }
|
||||
buildoptions {
|
||||
"-Wno-class-memaccess"
|
||||
}
|
||||
|
||||
-- windows library cflags and libs
|
||||
filter "system:windows"
|
||||
includedirs { "../RecastDemo/Contrib/SDL/include" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user