Skip to content

Commit

Permalink
fix filegroup match
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed May 7, 2022
1 parent 9781f7b commit 48e5a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function _make_filter(filepath, target, vcxprojdir)
local files = extraconf.files or "**"
local mode = extraconf.mode
for _, filepattern in ipairs(files) do
filepattern = path.pattern(path.translate(filepattern))
if fileitem:match(filepattern) then
filepattern = path.pattern(path.absolute(path.join(rootdir, filepattern)))
if filepath:match(filepattern) then
if mode == "plain" then
filter = path.normalize(filegroup)
else
Expand Down
2 changes: 1 addition & 1 deletion xmake/plugins/project/vsxmake/getinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function _make_filter(filepath, target, vcxprojdir)
local files = extraconf.files or "**"
local mode = extraconf.mode
for _, filepattern in ipairs(files) do
filepattern = path.pattern(path.translate(filepattern))
filepattern = path.pattern(path.absolute(path.join(rootdir, filepattern)))
if fileitem:match(filepattern) then
if mode == "plain" then
filter = path.normalize(filegroup)
Expand Down

0 comments on commit 48e5a65

Please sign in to comment.