diff options
| author | xq114 <[email protected]> | 2022-02-24 16:51:39 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-02-24 16:51:39 +0800 |
| commit | edad33e199e23651ab74674ec63e37e143346771 (patch) | |
| tree | 801e358f526be9f6ddc41ef9d7305226b8db89b5 /xmake/plugins/project/vsxmake/getinfo.lua | |
| parent | 83b50994a3c31b2b65e50a95a00fb7fc5cb22cf7 (diff) | |
fix vsxmake on windows
Diffstat (limited to 'xmake/plugins/project/vsxmake/getinfo.lua')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index dfbe7802e..0cd83a2f1 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -472,11 +472,13 @@ function main(outputdir, vsinfo) 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 local dir = path.directory(f) + local escaped_f = _escape(f) -- @see https://github.com/xmake-io/xmake/issues/2039 dir = _strip_dotdirs(dir) target._paths[f] = { - path = _escape(f), + -- @see https://github.com/xmake-io/xmake/issues/2077 + path = path.is_absolute(escaped_f) and escaped_f or "$(XmakeProjectDir)\\" .. escaped_f, dir = _escape(dir) } while dir ~= "." do |
