mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +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
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
option (ENABLE_ORC "Enable ORC" 1)
|
|
|
|
if(ENABLE_ORC)
|
|
option (USE_INTERNAL_ORC_LIBRARY "Set to FALSE to use system ORC instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/orc/c++/include/orc/OrcFile.hh")
|
|
if(USE_INTERNAL_ORC_LIBRARY)
|
|
message(WARNING "submodule contrib/orc is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set(USE_INTERNAL_ORC_LIBRARY 0)
|
|
endif()
|
|
set(MISSING_INTERNAL_ORC_LIBRARY 1)
|
|
endif ()
|
|
|
|
if (NOT USE_INTERNAL_ORC_LIBRARY)
|
|
find_package(orc)
|
|
endif ()
|
|
|
|
#if (USE_INTERNAL_ORC_LIBRARY)
|
|
#find_path(CYRUS_SASL_INCLUDE_DIR sasl/sasl.h)
|
|
#find_library(CYRUS_SASL_SHARED_LIB sasl2)
|
|
#if (NOT CYRUS_SASL_INCLUDE_DIR OR NOT CYRUS_SASL_SHARED_LIB)
|
|
# set(USE_ORC 0)
|
|
#endif()
|
|
#endif()
|
|
|
|
if (ORC_LIBRARY AND ORC_INCLUDE_DIR)
|
|
set(USE_ORC 1)
|
|
elseif(NOT MISSING_INTERNAL_ORC_LIBRARY AND ARROW_LIBRARY) # (LIBGSASL_LIBRARY AND LIBXML2_LIBRARY)
|
|
set(ORC_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/orc/c++/include")
|
|
set(ORC_LIBRARY orc)
|
|
set(USE_ORC 1)
|
|
else()
|
|
set(USE_INTERNAL_ORC_LIBRARY 0)
|
|
endif()
|
|
|
|
endif()
|
|
|
|
message (STATUS "Using internal=${USE_INTERNAL_ORC_LIBRARY} orc=${USE_ORC}: ${ORC_INCLUDE_DIR} : ${ORC_LIBRARY}")
|