From 32f89fbfcfb6367f09813750c8c791647e24b63d Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 25 Sep 2021 23:05:51 +0800 Subject: inherit rpathdirs for static target --- xmake/rules/utils/inherit_links/inherit_links.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index 97c585ded..d5567b605 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -79,7 +79,7 @@ function main(target) -- and we need pass `{public = true}` to add_packages/add_links/... to export it if want to export links for shared target -- if targetkind == "static" then - for _, name in ipairs({"frameworkdirs", "frameworks", "linkdirs", "links", "syslinks"}) do + for _, name in ipairs({"rpathdirs", "frameworkdirs", "frameworks", "linkdirs", "links", "syslinks"}) do local values = _get_values_from_target(target, name) if values and #values > 0 then target:add(name, values, {public = true}) -- cgit v1.3.1