mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-22 01:30:51 +00:00
f87ae6808f
* Correct fix of building with external poco with disabled sending progress
Revert "Removed wrong code [#CLICKHOUSE-2]."
This reverts commit 33f9917f53
.
* fix
* fix
* cmake: USE_INTERNAL_ZLIB_LIBRARY
20 lines
468 B
CMake
20 lines
468 B
CMake
if (NOT USE_INTERNAL_ZLIB_LIBRARY)
|
|
find_package (ZLIB)
|
|
|
|
if (ZLIB_FOUND)
|
|
include_directories (${ZLIB_INCLUDE_DIRS})
|
|
endif ()
|
|
endif ()
|
|
|
|
if (NOT ZLIB_FOUND)
|
|
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}")
|