mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
ac178bde1f
* Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM * Fix lib find order * Allow define non-contrib cityhash farmhash metrohash * Fix message * Cmake: fixes * clean * Update CMakeLists.txt
16 lines
609 B
CMake
16 lines
609 B
CMake
option (USE_INTERNAL_ZOOKEEPER_LIBRARY "Set to FALSE to use system zookeeper library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_ZOOKEEPER_LIBRARY)
|
|
find_library (ZOOKEEPER_LIBRARY zookeeper_mt)
|
|
find_path (ZOOKEEPER_INCLUDE_DIR NAMES zookeeper/zookeeper.h PATHS ${ZOOKEEPER_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (ZOOKEEPER_LIBRARY AND ZOOKEEPER_INCLUDE_DIR)
|
|
include_directories (${ZOOKEEPER_INCLUDE_DIR})
|
|
else ()
|
|
set (USE_INTERNAL_ZOOKEEPER_LIBRARY 1)
|
|
set (ZOOKEEPER_LIBRARY zookeeper_mt)
|
|
endif ()
|
|
|
|
message (STATUS "Using zookeeper: ${ZOOKEEPER_INCLUDE_DIR} : ${ZOOKEEPER_LIBRARY}")
|