diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-04 23:27:28 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-04 23:27:28 +0200 |
| commit | 6c27288e6156c41ad754c7a195faaf40dcce0c18 (patch) | |
| tree | 9e0c46562d0efa2fa4d6de87ba726c2d54919643 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 92bd964f8e420a2bb72fd82a17603b5fddc865d3 (diff) | |
Fix bmi generation path when module is generated by build chain
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index c2351371f..fa5741676 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -90,7 +90,7 @@ function generate_dependencies(target, sourcebatch, opt) local dependfile = target:dependfile(sourcefile) depend.on_changed(function () progress.show(opt.progress, "${color.build.object}generating.cxx.module.deps %s", sourcefile) - local outputdir = path.join(cachedir, path.directory(path.relative(sourcefile, target:scriptdir()))) + local outputdir = path.join(cachedir, path.directory(path.relative(sourcefile, projectdir))) if not os.isdir(outputdir) then os.mkdir(outputdir) end |
