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:
13
thirdparty/libtommath.lua
vendored
13
thirdparty/libtommath.lua
vendored
@ -1,13 +1,17 @@
|
||||
libtommath = {}
|
||||
|
||||
function libtommath:include()
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "libtommath")
|
||||
}
|
||||
if References:include("libtommath") then
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "libtommath")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function libtommath:link()
|
||||
links "libtommath"
|
||||
if References:link("libtommath") then
|
||||
links "libtommath"
|
||||
end
|
||||
end
|
||||
|
||||
function libtommath:use()
|
||||
@ -15,6 +19,7 @@ function libtommath:use()
|
||||
end
|
||||
|
||||
function libtommath:project()
|
||||
References:reset()
|
||||
local folder = ThirdPartyFolder();
|
||||
|
||||
project "libtommath"
|
||||
|
Reference in New Issue
Block a user