diff options
| author | ruki <[email protected]> | 2020-04-14 22:48:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-14 10:49:29 +0800 |
| commit | b984513ca7aea8f0e83337a5807dfc953058b5ff (patch) | |
| tree | efdd4db83667d9672900688cedf1b276d4452bc1 | |
| parent | 923c460910f415b8d4769d92ed21a1f124d28214 (diff) | |
fix inherit links for static target
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index 3e5bc1ef0..20b6e3000 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -65,11 +65,7 @@ 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 - if targetkind == "shared" then - target:add(name, values, {public = true}) - else - target:add(name, values, {interface = true}) - end + target:add(name, values, {public = true}) end end end |
