Zlib-ng: enable zlib compat mode (this fixes log compression) (#CLICKHOUSE-3447)

This commit is contained in:
proller 2017-11-21 19:18:18 +03:00
parent e4d354e39a
commit 0915657fca

View File

@ -6,6 +6,7 @@ endif ()
if (NOT ZLIB_FOUND)
set (USE_INTERNAL_ZLIB_LIBRARY 1)
set (ZLIB_COMPAT 1) # for zlib-ng, also enables WITH_GZFILEOP
set (ZLIB_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libzlib-ng" "${ClickHouse_BINARY_DIR}/contrib/libzlib-ng") # generated zconf.h
set (ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR}) # for poco
set (ZLIB_FOUND 1) # for poco