diff options
| author | ruki <[email protected]> | 2024-07-22 23:59:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-22 23:59:34 +0800 |
| commit | 7aaf46f34749b39067bf9c70ba08138ec2708497 (patch) | |
| tree | 64e78db06aa8ec4239005f78ca4f85dac5634557 | |
| parent | 621441fbd2f0f1792aa2fb03aa7c485793003820 (diff) | |
improve to find dll
| -rw-r--r-- | xmake/modules/package/manager/xmake/find_package.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/xmake/find_package.lua b/xmake/modules/package/manager/xmake/find_package.lua index 0d5336fe4..e3aed1294 100644 --- a/xmake/modules/package/manager/xmake/find_package.lua +++ b/xmake/modules/package/manager/xmake/find_package.lua @@ -167,6 +167,13 @@ function _find_package_from_repo(name, opt) result.shared = true table.insert(libfiles, file) end + -- @see https://github.com/xmake-io/xmake/issues/5325#issuecomment-2242513463 + if not result.shared then + for _, file in ipairs(os.files(path.join(installdir, "**.dll"))) do + result.shared = true + table.insert(libfiles, file) + end + end end -- add root link directories |
