Reverse order of system and sibling libraries to match previous versions
This commit is contained in:
parent
f5abdb9d69
commit
9ac067355d
@ -329,17 +329,16 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
function vstudio.getLinks(cfg, explicit)
|
function vstudio.getLinks(cfg, explicit)
|
||||||
local links = {}
|
-- System libraries are undecorated, add the required extension
|
||||||
|
local links = config.getlinks(cfg, "system", "fullpath")
|
||||||
-- If we need sibling projects to be listed explicitly, grab them first
|
for i = 1, #links do
|
||||||
if explicit then
|
links[i] = path.appendextension(links[i], ".lib")
|
||||||
links = config.getlinks(cfg, "siblings", "fullpath")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Then the system libraries, which come undecorated
|
-- If we need sibling projects to be listed explicitly, add them on
|
||||||
local system = config.getlinks(cfg, "system", "fullpath")
|
if explicit then
|
||||||
for i = 1, #system do
|
local siblings = config.getlinks(cfg, "siblings", "fullpath")
|
||||||
table.insert(links, path.appendextension(system[i], ".lib"))
|
links = table.join(links, siblings)
|
||||||
end
|
end
|
||||||
|
|
||||||
return links
|
return links
|
||||||
|
Loading…
Reference in New Issue
Block a user