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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
789 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)
2022-06-01 08:10:06 +00:00
message(STATUS "Not using hive")
2022-01-17 05:06:53 +00:00
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)