summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-02-25 23:10:35 +0800
committerxq114 <[email protected]>2022-02-25 23:10:35 +0800
commit5ca7f4cae855770a48a1bc7449263d74f7a0fc69 (patch)
tree67aee4ee76a7b4621805543fa58fc0fd5bd7938a /xmake/plugins
parenta7aa8283b09f347c4ba68d7cad443c8dce2fc361 (diff)
make vsxmake filter more consistent
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 0cd83a2f1..2441ab982 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -467,7 +467,7 @@ function main(outputdir, vsinfo)
for _, target in pairs(targets) do
target._paths = {}
local dirs = {}
- local root = project.directory()
+ local root = target.scriptdir or project.directory()
target.sourcefiles = table.imap(target.sourcefiles, function(_, v) return path.relative(v, root) end)
target.headerfiles = table.imap(target.headerfiles, function(_, v) return path.relative(v, root) end)
for _, f in ipairs(table.join(target.sourcefiles, target.headerfiles)) do