mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
22 lines
781 B
CMake
22 lines
781 B
CMake
if (TARGET ch_contrib::hdfs)
|
|
option(ENABLE_HIVE "Enable Hive" ${ENABLE_LIBRARIES})
|
|
elseif(ENABLE_HIVE)
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Cannot use Hive without HDFS")
|
|
endif()
|
|
|
|
if (NOT ENABLE_HIVE)
|
|
message("Hive disabled")
|
|
return()
|
|
endif()
|
|
|
|
set (SRCS
|
|
${ClickHouse_SOURCE_DIR}/contrib/hive-metastore/hive_metastore_constants.cpp
|
|
${ClickHouse_SOURCE_DIR}/contrib/hive-metastore/hive_metastore_types.cpp
|
|
${ClickHouse_SOURCE_DIR}/contrib/hive-metastore/ThriftHiveMetastore.cpp
|
|
)
|
|
|
|
add_library(_hivemetastore ${SRCS})
|
|
add_library(ch_contrib::hivemetastore ALIAS _hivemetastore)
|
|
target_link_libraries(_hivemetastore PUBLIC ch_contrib::thrift)
|
|
target_include_directories(_hivemetastore SYSTEM BEFORE PUBLIC ${ClickHouse_SOURCE_DIR}/contrib/hive-metastore)
|