diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-05 04:40:47 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-05 04:40:47 +0200 |
| commit | b370625fbf37fe5e957677ec4c04ec3503d0da90 (patch) | |
| tree | 2f098063e38515f970a9142af64c90c2bd8baa32 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 886364620b81ad0024e5e98bee9b5a44e6c6f160 (diff) | |
Handle angle relative path
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 93eef7c8c..04d34f02c 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -174,7 +174,8 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt) if headerunit.type == ":quote" then outputdir = path.join(cachedir, path.directory(path.relative(headerunit.path, projectdir))) else - outputdir = path.join(cachedir, path.directory(headerunit.path):sub(3)) + -- if path is relative then its a subtarget path + outputdir = path.join(cachedir, path.is_absolute(headerunit.path) and path.directory(headerunit.path):sub(3) or headerunit.path) end batchcmds:mkdir(outputdir) |
