From 011ec086ca07137b2e77567ec53b64b15bee759d Mon Sep 17 00:00:00 2001 From: kimkulling Date: Wed, 20 Jan 2021 12:47:14 +0100 Subject: [PATCH] ensure shared dlls are exporting zlib symbols --- code/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index fd10bd163..333c0058d 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -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