Merge pull request #79 from starkos/remove-extra-list-sorts

Restore ordering of include file search paths
This commit is contained in:
starkos 2015-05-21 08:01:34 -04:00
commit 5d66d7695f

View File

@ -902,12 +902,10 @@
function m.additionalIncludeDirectories(cfg, includedirs)
if #includedirs > 0 then
local dirs = project.getrelative(cfg.project, includedirs)
local dirs = vstudio.path(cfg.project, includedirs)
dirs = table.filterempty(dirs)
if #dirs > 0 then
table.sort(dirs)
p.x('<AdditionalIncludeDirectories>%s;%%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>', path.translate(table.concat(dirs, ";")))
p.x('<AdditionalIncludeDirectories>%s;%%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>', table.concat(dirs, ";"))
end
end
end