mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
54a5b801b7
* Fix build * cmake: fix cpuinfo * Fix includes after processors merge Conflicts: dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp * Fix build in gcc8 * fix test link * fix test link * Fix test link * link fix * Fix includes after processors merge 2 Conflicts: dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp * Fix includes after processors merge 3 * link fix * Fix likely/unlikely conflict with cython * Fix conflict with protobuf/stubs/atomicops.h * remove unlikely.h * Fix macos build (do not use timer_t) * wip * Fix build (orc, ...) * Missing files * Try fix * fix hdfs * Fix llvm 7.1 find
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
if(NOT ARCH_ARM AND NOT OS_FREEBSD AND NOT APPLE AND USE_PROTOBUF)
|
|
option(ENABLE_HDFS "Enable HDFS" 1)
|
|
endif()
|
|
|
|
if(ENABLE_HDFS)
|
|
option(USE_INTERNAL_HDFS3_LIBRARY "Set to FALSE to use system HDFS3 instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if(NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libhdfs3/include/hdfs/hdfs.h")
|
|
if(USE_INTERNAL_HDFS3_LIBRARY)
|
|
message(WARNING "submodule contrib/libhdfs3 is missing. to fix try run: \n git submodule update --init --recursive")
|
|
endif()
|
|
set(MISSING_INTERNAL_HDFS3_LIBRARY 1)
|
|
set(USE_INTERNAL_HDFS3_LIBRARY 0)
|
|
endif()
|
|
|
|
if(NOT USE_INTERNAL_HDFS3_LIBRARY)
|
|
find_library(HDFS3_LIBRARY hdfs3)
|
|
find_path(HDFS3_INCLUDE_DIR NAMES hdfs/hdfs.h PATHS ${HDFS3_INCLUDE_PATHS})
|
|
endif()
|
|
|
|
if(HDFS3_LIBRARY AND HDFS3_INCLUDE_DIR)
|
|
set(USE_HDFS 1)
|
|
elseif(NOT MISSING_INTERNAL_HDFS3_LIBRARY AND LIBGSASL_LIBRARY AND LIBXML2_LIBRARY)
|
|
set(HDFS3_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libhdfs3/include")
|
|
set(HDFS3_LIBRARY hdfs3)
|
|
set(USE_INTERNAL_HDFS3_LIBRARY 1)
|
|
set(USE_HDFS 1)
|
|
else()
|
|
set(USE_INTERNAL_HDFS3_LIBRARY 0)
|
|
endif()
|
|
|
|
endif()
|
|
|
|
message(STATUS "Using hdfs3=${USE_HDFS}: ${HDFS3_INCLUDE_DIR} : ${HDFS3_LIBRARY}")
|