mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05: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:
@ -5,7 +5,9 @@ function ZoneCodeGenerator:include()
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:link()
|
||||
links "ZoneCodeGenerator"
|
||||
if References:link("ZoneCodeGenerator") then
|
||||
links "ZoneCodeGenerator"
|
||||
end
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:use()
|
||||
@ -13,6 +15,7 @@ function ZoneCodeGenerator:use()
|
||||
end
|
||||
|
||||
function ZoneCodeGenerator:project()
|
||||
References:reset()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneCodeGenerator"
|
||||
|
Reference in New Issue
Block a user