ClickHouse/cmake/find/cassandra.cmake

23 lines
1.0 KiB
CMake
Raw Normal View History

2019-01-27 16:51:05 +00:00
if (NOT DEFINED ENABLE_CASSANDRA OR ENABLE_CASSANDRA)
2020-05-19 17:48:28 +00:00
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libuv")
message (WARNING "submodule contrib/libuv is missing. to fix try run: \n git submodule update --init --recursive")
elseif (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/cassandra")
2019-01-27 16:51:05 +00:00
message (WARNING "submodule contrib/cassandra is missing. to fix try run: \n git submodule update --init --recursive")
else()
2020-05-22 14:19:33 +00:00
set (LIBUV_ROOT_DIR "${ClickHouse_SOURCE_DIR}/contrib/libuv")
2019-01-27 16:51:05 +00:00
set (CASSANDRA_INCLUDE_DIR
"${ClickHouse_SOURCE_DIR}/contrib/cassandra/include/")
2020-05-22 14:19:33 +00:00
if (USE_STATIC_LIBRARIES)
set (LIBUV_LIBRARY uv_a)
set (CASSANDRA_LIBRARY cassandra_static)
else()
set (LIBUV_LIBRARY uv)
set (CASSANDRA_LIBRARY cassandra)
endif()
2019-01-27 16:51:05 +00:00
set (USE_CASSANDRA 1)
2020-05-22 14:19:33 +00:00
set (CASS_ROOT_DIR "${ClickHouse_SOURCE_DIR}/contrib/cassandra")
2019-01-27 16:51:05 +00:00
message(STATUS "Using cassandra: ${CASSANDRA_LIBRARY}")
endif()
endif()