summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 90ba66c81..d658815aa 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -227,6 +227,13 @@ rule("c++.build.modules.install")
local modules = compiler_support.localcache():get2(target:name(), "c++.modules")
builder.generate_metadata(target, modules)
- compiler_support.install_module_target(target)
+ compiler_support.add_installfiles_for_modules(target)
+ end
+ end)
+
+ before_uninstall(function (target)
+ import("modules_support.compiler_support")
+ if compiler_support.contains_modules(target) then
+ compiler_support.add_installfiles_for_modules(target)
end
end)