diff --git a/RecastDemo/premake5.lua b/RecastDemo/premake5.lua index 5dc6847..ce7ce51 100644 --- a/RecastDemo/premake5.lua +++ b/RecastDemo/premake5.lua @@ -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" }