diff options
| author | ruki <[email protected]> | 2020-04-10 22:45:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-10 10:34:33 +0800 |
| commit | 9336b598043c56e35e109134cab23fdeb52f5f78 (patch) | |
| tree | 04a8c3b89c7ee9a6b285ada41d65a2f3b193295b | |
| parent | e774b611a479411d0ba96f4f33ea9a3f14bab01f (diff) | |
fix inherit links for shared target
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index 841e0059c..3e5bc1ef0 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -65,7 +65,11 @@ function main(target) for _, name in ipairs({"frameworkdirs", "frameworks", "linkdirs", "links", "syslinks"}) do local values = _get_values_from_target(target, name) if values and #values > 0 then - target:add(name, values, {interface = true}) + if targetkind == "shared" then + target:add(name, values, {public = true}) + else + target:add(name, values, {interface = true}) + end end end end |
