Fixed project-lookup bug in project.getdependencies()
This commit is contained in:
parent
6a586ded76
commit
8c5924f705
@ -289,9 +289,9 @@
|
||||
function project.getdependencies(prj)
|
||||
local result = {}
|
||||
|
||||
for cfg in project.eachconfig(prj, nil, "links") do
|
||||
for cfg in project.eachconfig(prj) do
|
||||
for _, link in ipairs(cfg.links) do
|
||||
local dep = project.findproject(link)
|
||||
local dep = premake.solution.findproject(cfg.solution, link)
|
||||
if dep and not table.contains(result, dep) then
|
||||
table.insert(result, dep)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user