ClickHouse/contrib/hive-metastore-cmake/CMakeLists.txt

22 lines
781 B
CMake
Raw Normal View History

2022-01-18 19:34:22 +00:00
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()
2022-01-17 05:06:53 +00:00
if (NOT ENABLE_HIVE)
message("Hive disabled")
return()
endif()
2021-11-15 15:34:48 +00:00
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
)
2022-01-17 05:06:53 +00:00
add_library(_hivemetastore ${SRCS})
add_library(ch_contrib::hivemetastore ALIAS _hivemetastore)
2022-01-17 05:10:57 +00:00
target_link_libraries(_hivemetastore PUBLIC ch_contrib::thrift)
2022-01-17 05:06:53 +00:00
target_include_directories(_hivemetastore SYSTEM BEFORE PUBLIC ${ClickHouse_SOURCE_DIR}/contrib/hive-metastore)