mirror of
https://github.com/hanzoai/datastore.git
synced 2026-10-30 14:48:37 +00:00
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.
22 lines
785 B
CMake
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)
|