Fix include path with USE_LIBSDL on macOS

The cflags will contain an include path ending in "SDL2", not just "SDL", and removing just the latter leaves a stray "2" on the end.
This commit is contained in:
Joshua Root 2017-07-22 22:04:39 +10:00 committed by Vas Crabb
parent bdd1b395d4
commit 97d5034d1b

View File

@ -86,7 +86,7 @@ if BASE_TARGETOS=="unix" then
"MACOSX_USE_LIBSDL",
}
buildoptions {
backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL::'"),
backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL2::'"),
}
end
end