fix error about concatenating a nil value

guess the "vs*" config is evaluated even if we aren't building for it...
This commit is contained in:
Gered 2013-02-09 11:40:04 -05:00
parent 6e90860293
commit 3095735268

View file

@ -4,6 +4,8 @@ SDL_ROOT = os.getenv("SDL_ROOT")
if not SDL_ROOT and string.find(_ACTION, "vs") then
printf("ERROR: Environment variable SDL_ROOT is not set.")
os.exit()
elseif not SDL_ROOT then
SDL_ROOT = ""
end
if _ACTION == "clean" then