diff options
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index f433cb157..8cfe46591 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -186,7 +186,16 @@ function _make_targetinfo(mode, arch, target) end end for k, v in pairs(setrunenvs) do - runenvs[k] = path.joinenv(v) + if #v == 1 then + v = v[1] + if path.is_absolute(v) and v:startswith(project.directory()) then + runenvs[k] = _make_dirs(v) + else + runenvs[k] = v[1] + end + else + runenvs[k] = path.joinenv(v) + end end local runenvstr = {} for k, v in pairs(runenvs) do |
