2017-02-28 23:49:04 +00:00
|
|
|
option (USE_INTERNAL_ZOOKEEPER_LIBRARY "Set to FALSE to use system zookeeper library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_ZOOKEEPER_LIBRARY)
|
2017-04-01 07:20:54 +00:00
|
|
|
find_library (ZOOKEEPER_LIBRARY zookeeper_mt)
|
|
|
|
find_path (ZOOKEEPER_INCLUDE_DIR NAMES zookeeper/zookeeper.h PATHS ${ZOOKEEPER_INCLUDE_PATHS})
|
2017-10-14 00:53:01 +00:00
|
|
|
set(ZOOKEEPER_INCLUDE_DIR "${ZOOKEEPER_INCLUDE_DIR}/zookeeper")
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (ZOOKEEPER_LIBRARY AND ZOOKEEPER_INCLUDE_DIR)
|
2017-04-01 07:20:54 +00:00
|
|
|
include_directories (${ZOOKEEPER_INCLUDE_DIR})
|
2017-02-28 23:49:04 +00:00
|
|
|
else ()
|
2017-04-01 07:20:54 +00:00
|
|
|
set (USE_INTERNAL_ZOOKEEPER_LIBRARY 1)
|
2017-10-13 19:02:41 +00:00
|
|
|
set(WANT_CPPUNIT 0 CACHE BOOL "")
|
|
|
|
set (ZOOKEEPER_LIBRARY zookeeper)
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
message (STATUS "Using zookeeper: ${ZOOKEEPER_INCLUDE_DIR} : ${ZOOKEEPER_LIBRARY}")
|
2017-10-13 19:02:41 +00:00
|
|
|
|
|
|
|
|
2017-10-13 22:53:57 +00:00
|
|
|
# how to make clickhouse branch of https://github.com/ClickHouse-Extras/zookeeper.git :
|
|
|
|
# git remote add upstream https://github.com/apache/zookeeper.git
|
|
|
|
# git checkhout upstream/master
|
|
|
|
# git branch -D clickhouse
|
|
|
|
# git checkout -b clickhouse
|
|
|
|
# git merge clickhouse_misc
|
|
|
|
# git merge clickhouse_706
|