From 19eee763e481570b2bfd1e1a62ec547892d80097 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Aug 2021 15:33:31 +0800 Subject: Update windows.lua --- xmake/modules/target/action/install/windows.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.3.1