From d305fbefc3c2d400b5c3cca52fd6fe5261e8a538 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Tue, 14 Oct 2014 08:52:58 -0700 Subject: [PATCH] Added warning when SDL2_DIR env var is not set on Windows. --- scripts/genie.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/genie.lua b/scripts/genie.lua index 053af6f0..f4dad61e 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -49,6 +49,14 @@ toolchain(BGFX_BUILD_DIR, BGFX_THIRD_PARTY_DIR) function copyLib() end +if _OPTIONS["with-sdl"] then + if os.is("windows") then + if not os.getenv("SDL2_DIR") then + print("Set SDL2_DIR enviroment variable.") + end + end +end + function exampleProject(_name) project ("example-" .. _name)