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:
parent
de4dea8007
commit
4891d8185a
3
.github/workflows/msys-cygwin.yml
vendored
3
.github/workflows/msys-cygwin.yml
vendored
@ -68,7 +68,8 @@ jobs:
|
|||||||
cmake /cygdrive/d/a/zlib/zlib \
|
cmake /cygdrive/d/a/zlib/zlib \
|
||||||
-B build \
|
-B build \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DZLIB_BUILD_MINIZIP=OFF \
|
-DZLIB_BUILD_MINIZIP=ON \
|
||||||
|
-DMINIZIP_ENABLE_BZIP2=OFF \
|
||||||
-G Ninja
|
-G Ninja
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build --config Release -v -j1
|
run: cmake --build build --config Release -v -j1
|
||||||
|
@ -114,10 +114,10 @@ set(MINIUNZIP_HDRS
|
|||||||
unzip.h
|
unzip.h
|
||||||
zip.h)
|
zip.h)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32 OR CYGWIN)
|
||||||
set(minizip_static_suffix "s")
|
set(minizip_static_suffix "s")
|
||||||
set(CMAKE_DEBUG_POSTFIX "d")
|
set(CMAKE_DEBUG_POSTFIX "d")
|
||||||
endif(WIN32)
|
endif(WIN32 OR CYGWIN)
|
||||||
|
|
||||||
if(MINIZIP_BUILD_SHARED)
|
if(MINIZIP_BUILD_SHARED)
|
||||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user