summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/utils/install_importfiles/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/utils/install_importfiles/xmake.lua b/xmake/rules/utils/install_importfiles/xmake.lua
index 45e6616f8..848f215e1 100644
--- a/xmake/rules/utils/install_importfiles/xmake.lua
+++ b/xmake/rules/utils/install_importfiles/xmake.lua
@@ -21,7 +21,9 @@
-- install pkg-config/*.pc import files
rule("utils.install.pkgconfig_importfiles")
after_install(function (target, opt)
- import("target.action.install.pkgconfig_importfiles")(target, opt)
+ opt = opt or {}
+ local filename = target:extraconf("rules", "utils.install.pkgconfig_importfiles", "filename")
+ import("target.action.install.pkgconfig_importfiles")(target, table.join(opt, {filename = filename}))
end)
-- install *.cmake import files