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