1
0
mirror of https://github.com/madler/zlib synced 2025-03-28 21:13:15 +00:00

CMake: Give minizip a suffix on Cygwin as well.

This commit is contained in:
Vollstrecker 2025-01-24 10:42:58 +01:00 committed by Mark Adler
parent de4dea8007
commit 4891d8185a
2 changed files with 4 additions and 3 deletions

View File

@ -68,7 +68,8 @@ jobs:
cmake /cygdrive/d/a/zlib/zlib \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DZLIB_BUILD_MINIZIP=OFF \
-DZLIB_BUILD_MINIZIP=ON \
-DMINIZIP_ENABLE_BZIP2=OFF \
-G Ninja
- name: Build
run: cmake --build build --config Release -v -j1

View File

@ -114,10 +114,10 @@ set(MINIUNZIP_HDRS
unzip.h
zip.h)
if(WIN32)
if(WIN32 OR CYGWIN)
set(minizip_static_suffix "s")
set(CMAKE_DEBUG_POSTFIX "d")
endif(WIN32)
endif(WIN32 OR CYGWIN)
if(MINIZIP_BUILD_SHARED)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)