ensure shared dlls are exporting zlib symbols

static_zlib
kimkulling 2021-01-20 12:47:14 +01:00
parent 77d710bc64
commit 011ec086ca
1 changed files with 3 additions and 0 deletions

View File

@ -966,6 +966,9 @@ ELSE()
FIND_PACKAGE(ZLIB)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
ELSE()
IF( BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DZLIB_DLL)
ENDIF()
MESSAGE(STATUS "compiling zlib from sources")
SET( zlib_SRCS
../contrib/zlib/crc32.h