From ff8358cfb4453a5770775e12e112c27c18b7fe63 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Tue, 28 May 2024 04:07:32 +0300 Subject: [PATCH] fix zlib library name on MinGW / Windows --- premake5-deps.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/premake5-deps.lua b/premake5-deps.lua index a80743aa..542551b0 100644 --- a/premake5-deps.lua +++ b/premake5-deps.lua @@ -488,8 +488,14 @@ end local zlib_name = '' -- name if os.target() == 'windows' then - zlib_name = 'zlibstatic' -else + if string.match(_ACTION, 'vs.+') then + zlib_name = 'zlibstatic' + elseif string.match(_ACTION, 'gmake.*') then + zlib_name = 'libzlibstatic' + else + error('unsupported os/action: ' .. os.target() .. ' / ' .. _ACTION) + end +else -- linux or macos zlib_name = 'libz' end -- extension