mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
21 lines
924 B
CMake
21 lines
924 B
CMake
option(ENABLE_ROCKSDB "Enable ROCKSDB" ${ENABLE_LIBRARIES})
|
|
option(USE_INTERNAL_ROCKSDB_LIBRARY "Set to FALSE to use system ROCKSDB library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if(ENABLE_ROCKSDB)
|
|
if (USE_INTERNAL_ROCKSDB_LIBRARY AND NOT MISSING_ROCKSDB)
|
|
set (ROCKSDB_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/rocksdb/include")
|
|
set (ROCKSDB_CORE_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/rocksdb/include")
|
|
set (ROCKSDB_LIBRARY "rocksdb")
|
|
set (USE_ROCKSDB 1)
|
|
else()
|
|
find_package(ROCKSDB)
|
|
endif ()
|
|
endif()
|
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/rocksdb/CMakeLists.txt")
|
|
message (WARNING "submodule contrib is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set (USE_INTERNAL_ROCKSDB_LIBRARY 0)
|
|
set (MISSING_ROCKSDB 1)
|
|
endif ()
|
|
|
|
message (STATUS "Using ROCKSDB=${USE_ROCKSDB}: ${ROCKSDB_INCLUDE_DIR} : ${ROCKSDB_LIBRARY}") |