diff --git a/src/base/config.lua b/src/base/config.lua index e20d5900..3644799f 100755 --- a/src/base/config.lua +++ b/src/base/config.lua @@ -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 diff --git a/src/base/project.lua b/src/base/project.lua index f9c86c08..cefb544d 100755 --- a/src/base/project.lua +++ b/src/base/project.lua @@ -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