summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-02 22:30:08 +0800
committerruki <[email protected]>2020-10-02 22:30:08 +0800
commit378936872327105816196e2827eb5ad784faead6 (patch)
tree468d9e0d2379d846204ed1b61001beba704caaad
parent84201fe219187b44b1b32eee369a08b7ccdbf38b (diff)
improve find_package
-rw-r--r--xmake/modules/package/manager/xmake/find_package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/xmake/find_package.lua b/xmake/modules/package/manager/xmake/find_package.lua
index e162f1605..fce6429f7 100644
--- a/xmake/modules/package/manager/xmake/find_package.lua
+++ b/xmake/modules/package/manager/xmake/find_package.lua
@@ -104,6 +104,9 @@ function _find_package_from_repo(name, opt)
end
end
if opt.plat == "windows" then
+ for _, file in ipairs(os.files(path.join(installdir, "lib", "*.dll"))) do
+ table.insert(libfiles, file)
+ end
for _, file in ipairs(os.files(path.join(installdir, "bin", "*.dll"))) do
table.insert(libfiles, file)
end