Files
zooqueen 7306e24eea datastore rebrand fix: ${ClickHouse_SOURCE_DIR} -> ${Datastore_SOURCE_DIR} (project var)
project(Datastore) renamed the CMake auto-vars ClickHouse_SOURCE_DIR/BINARY_DIR; the contrib
*-cmake glue + top-level CMakeLists submodule check still referenced the old names -> undefined ->
false 'submodules not initialized'. Renamed all CMake refs (incl contrib glue). Found by spark build.
2026-06-21 21:03:07 -07:00

22 lines
785 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(STATUS "Not using hive")
return()
endif()
set (SRCS
${Datastore_SOURCE_DIR}/contrib/hive-metastore/hive_metastore_constants.cpp
${Datastore_SOURCE_DIR}/contrib/hive-metastore/hive_metastore_types.cpp
${Datastore_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 ${Datastore_SOURCE_DIR}/contrib/hive-metastore)