mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-05 16:27:27 +00:00
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:
@@ -1,9 +1,11 @@
|
||||
Unlinker = {}
|
||||
|
||||
function Unlinker:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Unlinker")
|
||||
}
|
||||
if References:include("Unlinker") then
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Unlinker")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function Unlinker:link()
|
||||
@@ -15,6 +17,7 @@ function Unlinker:use()
|
||||
end
|
||||
|
||||
function Unlinker:project()
|
||||
References:reset()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Unlinker"
|
||||
|
Reference in New Issue
Block a user