summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager/dub/find_package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-16 23:54:41 +0800
committerruki <[email protected]>2021-09-16 23:54:41 +0800
commit8e41cd06d4f77d7a3f8544be7d719ea399412d93 (patch)
treeef6eb60e6d267eb81ab19673f6c46666f0aa656f /xmake/modules/package/manager/dub/find_package.lua
parentb0de078312f7c87f54c9229b913992a495a3b2ed (diff)
fix find_package again
Diffstat (limited to 'xmake/modules/package/manager/dub/find_package.lua')
-rw-r--r--xmake/modules/package/manager/dub/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/dub/find_package.lua b/xmake/modules/package/manager/dub/find_package.lua
index 55ad2d6ef..8543a8bfb 100644
--- a/xmake/modules/package/manager/dub/find_package.lua
+++ b/xmake/modules/package/manager/dub/find_package.lua
@@ -67,7 +67,7 @@ function main(name, opt)
if pkgdir then
local links = {}
for _, libraryfile in ipairs(os.files(path.join(pkgdir, libpattern))) do
- table.insert(links, target.linkname(path.filename(libraryfile)))
+ table.insert(links, target.linkname(path.filename(libraryfile), {plat = opt.plat}))
end
local includedirs = {}
local dubjson = path.join(pkgdir, "dub.json")