diff options
| author | ruki <[email protected]> | 2021-09-25 23:05:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-25 23:05:51 +0800 |
| commit | 32f89fbfcfb6367f09813750c8c791647e24b63d (patch) | |
| tree | 1941b7f9e5341497384474ee36365d82d3966b9a | |
| parent | 55b850aadb0e9bcf2d72aea8697ec3392f966c22 (diff) | |
inherit rpathdirs for static target
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |
