Merged in mchandler_blizzard/premake-dev/selflink_fix (pull request #126)

Add check to ensure we dont link against our selves
This commit is contained in:
Jason Perkins 2015-03-29 16:43:24 -04:00
commit 7f22ab9b7a
2 changed files with 5 additions and 3 deletions

View File

@ -280,8 +280,8 @@
end
-- If this is something I can link against, pull out the requested part
if item then
-- dont link against my self
if item and item ~= cfg then
if part == "directory" then
item = path.getdirectory(item)
if item == "." then

View File

@ -176,7 +176,9 @@
for cfg in project.eachconfig(prj) do
for _, link in ipairs(cfg.links) do
add_to_project_list(cfg, link, result)
if link ~= prj.name then
add_to_project_list(cfg, link, result)
end
end
if not linkOnly then
for _, depproj in ipairs(cfg.dependson) do