summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 11a6bf582..3aa123188 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -144,7 +144,7 @@ function builder:_inherit_from_targetdeps(results, target, flagname)
if flagname == "links" and (targetkind == "binary" or targetkind == "shared") then
-- add dependent link
- table.insert(results, dep:name())
+ table.insert(results, dep:basename())
-- inherit links from the depdent target
self:_inherit_from_target(results, dep, "links")