mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
20 lines
502 B
CMake
20 lines
502 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 (USE_INTERNAL_ZLIB_LIBRARY 1)
|
|
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}")
|