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:
commit
7f22ab9b7a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user