mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
64194c9b03
* Updating poco part 1: use submodule * switch to tmp submodule * update submodule * wip * wip * wip * wip * wip * fix * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * test * wip * wip * wip * wip * wip * wip * Remove werror * wip * wip * wip * wip * wip * Block pipe signal * Update poco * Update and fix poco * Better sigpipe handler * Better block sigpipe * Update BaseDaemon.cpp
20 lines
683 B
CMake
20 lines
683 B
CMake
option (USE_INTERNAL_ZLIB_LIBRARY "Set to FALSE to use system zlib library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_ZLIB_LIBRARY)
|
|
find_package (ZLIB)
|
|
endif ()
|
|
|
|
if (NOT ZLIB_FOUND)
|
|
set (USE_INTERNAL_ZLIB_LIBRARY 1)
|
|
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
|
|
if (USE_STATIC_LIBRARIES)
|
|
set (ZLIB_LIBRARIES zlibstatic)
|
|
else ()
|
|
set (ZLIB_LIBRARIES zlib)
|
|
endif ()
|
|
endif ()
|
|
|
|
message (STATUS "Using zlib: ${ZLIB_INCLUDE_DIR} : ${ZLIB_LIBRARIES}")
|