summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-19 15:33:31 +0800
committerGitHub <[email protected]>2021-08-19 15:33:31 +0800
commit19eee763e481570b2bfd1e1a62ec547892d80097 (patch)
tree1934ebb463bee0ba14f861a8c75430d429e211c7
parent6c3bd03a0eba41d906ce89246c8046bbe39320f9 (diff)
Update windows.lua
-rw-r--r--xmake/modules/target/action/install/windows.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/target/action/install/windows.lua b/xmake/modules/target/action/install/windows.lua
index 73e8f5ee3..dfb8d2bd3 100644
--- a/xmake/modules/target/action/install/windows.lua
+++ b/xmake/modules/target/action/install/windows.lua
@@ -42,6 +42,7 @@ end
function _install_shared_for_package(target, pkg, outputdir)
for _, dllpath in ipairs(table.wrap(pkg:get("libfiles"))) do
if dllpath:endswith(".dll") then
+ local dllname = path.filename(dllpath)
if os.isfile(path.join(outputdir, dllname)) then
wprint("'%s' already exists in install dir, overwriting it from package(%s).", dllname, pkg:name())
end