2017-02-28 23:49:04 +00:00
|
|
|
option (USE_INTERNAL_ZLIB_LIBRARY "Set to FALSE to use system zlib library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
|
2017-02-07 21:28:13 +00:00
|
|
|
if (NOT USE_INTERNAL_ZLIB_LIBRARY)
|
|
|
|
find_package (ZLIB)
|
|
|
|
if (ZLIB_FOUND)
|
|
|
|
include_directories (${ZLIB_INCLUDE_DIRS})
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (NOT ZLIB_FOUND)
|
2017-02-08 21:35:27 +00:00
|
|
|
set (USE_INTERNAL_ZLIB_LIBRARY 1)
|
2017-02-07 21:28:13 +00:00
|
|
|
set (ZLIB_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libzlib-ng")
|
|
|
|
include_directories (BEFORE ${ZLIB_INCLUDE_DIR})
|
|
|
|
if (USE_STATIC_LIBRARIES)
|
|
|
|
set (ZLIB_LIBRARIES zlibstatic)
|
|
|
|
else ()
|
|
|
|
set (ZLIB_LIBRARIES zlib)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
message (STATUS "Using zlib: ${ZLIB_INCLUDE_DIR} : ${ZLIB_LIBRARIES}")
|