Fix handling of relative libdirs in config.getlinks()

This commit is contained in:
Jason Perkins 2012-06-13 17:13:52 -04:00
parent da4dbbc9de
commit 9855bc6483

View File

@ -218,8 +218,14 @@
--
function config.getlinks(cfg, kind, part)
local result = {}
-- if I'm building a list of link directories, include libdirs
local result = iif (part == "directory" and kind == "all", table.arraycopy(cfg.libdirs), {})
if part == "directory" and kind == "all" then
for _, dir in ipairs(cfg.libdirs) do
table.insert(result, project.getrelative(cfg.project, dir))
end
end
local function canlink(source, target)
-- can't link executables