mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
95 lines
2.5 KiB
CMake
Vendored
95 lines
2.5 KiB
CMake
Vendored
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast")
|
|
|
|
if (USE_INTERNAL_BOOST_LIBRARY)
|
|
add_subdirectory (libboost)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_LZ4_LIBRARY)
|
|
add_subdirectory (lz4-cmake)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_ZSTD_LIBRARY)
|
|
add_subdirectory (zstd-cmake)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_RE2_LIBRARY)
|
|
add_subdirectory (libre2)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY)
|
|
add_subdirectory (libdouble-conversion)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_ZOOKEEPER_LIBRARY)
|
|
add_subdirectory (zookeeper/src/c)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_CITYHASH_LIBRARY)
|
|
add_subdirectory (libcityhash)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_FARMHASH_LIBRARY)
|
|
add_subdirectory (libfarmhash)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_METROHASH_LIBRARY)
|
|
add_subdirectory (libmetrohash)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_BTRIE_LIBRARY)
|
|
add_subdirectory (libbtrie)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_UNWIND_LIBRARY)
|
|
add_subdirectory (libunwind)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_ZLIB_LIBRARY)
|
|
add_subdirectory (zlib-ng)
|
|
# todo: make pull to Dead2/zlib-ng and remove:
|
|
# We should use same defines when including zlib.h as used when zlib compiled
|
|
target_compile_definitions (zlib PUBLIC ZLIB_COMPAT WITH_GZFILEOP)
|
|
target_compile_definitions (zlibstatic PUBLIC ZLIB_COMPAT WITH_GZFILEOP)
|
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64")
|
|
target_compile_definitions (zlib PUBLIC X86_64)
|
|
target_compile_definitions (zlibstatic PUBLIC X86_64)
|
|
endif ()
|
|
|
|
set_target_properties(example PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
set_target_properties(minigzip PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
if (TARGET example64)
|
|
set_target_properties(example64 PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
endif ()
|
|
if (TARGET minigzip64)
|
|
set_target_properties(minigzip64 PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
endif ()
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_CCTZ_LIBRARY)
|
|
add_subdirectory (cctz-cmake)
|
|
endif ()
|
|
|
|
if (ENABLE_TCMALLOC AND USE_INTERNAL_GPERFTOOLS_LIBRARY)
|
|
add_subdirectory (libtcmalloc)
|
|
endif ()
|
|
|
|
if (NOT ARCH_ARM)
|
|
add_subdirectory (libcpuid)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_RDKAFKA_LIBRARY)
|
|
set(RDKAFKA_BUILD_EXAMPLES OFF CACHE BOOL "")
|
|
set(RDKAFKA_BUILD_TESTS OFF CACHE BOOL "")
|
|
mark_as_advanced(ZLIB_INCLUDE_DIR)
|
|
add_subdirectory (librdkafka)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_POCO_LIBRARY)
|
|
set (_save ${ENABLE_TESTS})
|
|
set (ENABLE_TESTS 0)
|
|
set (CMAKE_DISABLE_FIND_PACKAGE_ZLIB 1)
|
|
add_subdirectory (poco)
|
|
unset (CMAKE_DISABLE_FIND_PACKAGE_ZLIB)
|
|
set (ENABLE_TESTS ${_save})
|
|
endif ()
|