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

View File

@ -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"