Browse Source

Try to include premake5.lua files when looking for examples.

pull/595/head
Joao Matos 11 years ago
parent
commit
9041a73fab
  1. 10
      build/Helpers.lua

10
build/Helpers.lua

@ -91,7 +91,15 @@ function IncludeDir(dir) @@ -91,7 +91,15 @@ function IncludeDir(dir)
local deps = os.matchdirs(dir .. "/*")
for i,dep in ipairs(deps) do
local fp = path.join(dep, "premake4.lua")
local fp = path.join(dep, "premake5.lua")
fp = path.join(os.getcwd(), fp)
if os.isfile(fp) then
include(dep)
return
end
fp = path.join(dep, "premake4.lua")
fp = path.join(os.getcwd(), fp)
if os.isfile(fp) then

Loading…
Cancel
Save