From 66dfd3513ac69d6a48bd10c61b82157ca1733dfb Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 12 Dec 2020 00:38:37 +0800 Subject: improve install --- xmake/modules/target/action/install/windows.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/modules/target/action/install/windows.lua b/xmake/modules/target/action/install/windows.lua index 0ffb2bd82..3ef87a425 100644 --- a/xmake/modules/target/action/install/windows.lua +++ b/xmake/modules/target/action/install/windows.lua @@ -74,12 +74,14 @@ function install_binary(target, opt) -- install the dependent shared/windows (*.dll) target -- @see https://github.com/xmake-io/xmake/issues/961 for _, dep in ipairs(target:orderdeps()) do - if dep:targetkind() == "shared" and target:is_plat("windows", "mingw") then + if dep:targetkind() == "shared" then local depfile = dep:targetfile() if os.isfile(depfile) then os.vcp(depfile, binarydir) end end + -- install all shared libraries in packages in all deps + _install_shared_for_packages(dep, binarydir) end -- install shared libraries for all packages -- cgit v1.3.1