Premake: Add include guard to make sure dependencies do not include themselves in an infinite chain when two components depend on each other

This commit is contained in:
Jan
2020-02-07 02:46:24 +01:00
parent 55d5746650
commit f73c27a7dc
21 changed files with 245 additions and 125 deletions
+6 -3
View File
@@ -1,9 +1,11 @@
Linker = {}
function Linker:include()
includedirs {
path.join(ProjectFolder(), "Linker")
}
if References:include("Linker") then
includedirs {
path.join(ProjectFolder(), "Linker")
}
end
end
function Linker:link()
@@ -15,6 +17,7 @@ function Linker:use()
end
function Linker:project()
References:reset()
local folder = ProjectFolder();
project "Linker"