Fix build hive w/o hdfs

This commit is contained in:
Azat Khuzhin 2022-01-18 22:34:22 +03:00
parent a6d482d3e1
commit 97f9cf939e
3 changed files with 9 additions and 5 deletions

View File

@ -84,13 +84,13 @@ add_contrib (thrift-cmake thrift)
# parquet/arrow/orc
add_contrib (arrow-cmake arrow) # requires: snappy, thrift, double-conversion
add_contrib (avro-cmake avro) # requires: snappy
add_contrib (hive-metastore-cmake hive-metastore) # requires: thrift/avro/arrow
add_contrib (protobuf-cmake protobuf)
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf
add_contrib (hive-metastore-cmake hive-metastore) # requires: thrift/avro/arrow/libhdfs3
add_contrib (librdkafka-cmake librdkafka)
add_contrib (cppkafka-cmake cppkafka)
add_contrib (openldap-cmake openldap)
add_contrib (grpc-cmake grpc)
add_contrib (protobuf-cmake protobuf)
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf
add_contrib (msgpack-c-cmake msgpack-c)
if (ENABLE_FUZZING)

View File

@ -1,4 +1,8 @@
option(ENABLE_HIVE "Enable Hive" ${ENABLE_LIBRARIES})
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")

View File

@ -120,7 +120,7 @@ if (TARGET ch_contrib::hdfs)
endif()
add_headers_and_sources(dbms Storages/Cache)
if (TARGET ch_contrib::hivemetastore AND TARGET ch_contrib::hdfs)
if (TARGET ch_contrib::hivemetastore)
add_headers_and_sources(dbms Storages/Hive)
endif()