2018-07-30 20:36:23 +00:00
|
|
|
|
2020-04-27 18:34:36 +00:00
|
|
|
# Put all targets defined here and in added subfolders under "contrib/" folder in GUI-based IDEs by default.
|
|
|
|
# Some of third-party projects may override CMAKE_FOLDER or FOLDER property of their targets, so they will
|
|
|
|
# appear not in "contrib/" as originally planned here.
|
2020-04-27 17:50:26 +00:00
|
|
|
get_filename_component (_current_dir_name "${CMAKE_CURRENT_LIST_DIR}" NAME)
|
|
|
|
if (CMAKE_FOLDER)
|
|
|
|
set (CMAKE_FOLDER "${CMAKE_FOLDER}/${_current_dir_name}")
|
|
|
|
else ()
|
|
|
|
set (CMAKE_FOLDER "${_current_dir_name}")
|
|
|
|
endif ()
|
|
|
|
unset (_current_dir_name)
|
|
|
|
|
2021-04-23 22:44:23 +00:00
|
|
|
# Third-party libraries may have substandard code.
|
|
|
|
# Also remove a possible source of nondeterminism.
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w -D__DATE__= -D__TIME__= -D__TIMESTAMP__=")
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -D__DATE__= -D__TIME__= -D__TIMESTAMP__=")
|
2016-08-25 21:55:02 +00:00
|
|
|
|
2020-12-23 12:31:18 +00:00
|
|
|
if (WITH_COVERAGE)
|
2020-12-24 13:06:32 +00:00
|
|
|
set (WITHOUT_COVERAGE_LIST ${WITHOUT_COVERAGE})
|
|
|
|
separate_arguments(WITHOUT_COVERAGE_LIST)
|
|
|
|
# disable coverage for contib files and build with optimisations
|
2021-01-07 16:38:58 +00:00
|
|
|
if (COMPILER_CLANG)
|
|
|
|
add_compile_options(-O3 -DNDEBUG -finline-functions -finline-hint-functions ${WITHOUT_COVERAGE_LIST})
|
|
|
|
else()
|
|
|
|
add_compile_options(-O3 -DNDEBUG -finline-functions ${WITHOUT_COVERAGE_LIST})
|
|
|
|
endif()
|
2020-12-23 12:31:18 +00:00
|
|
|
endif()
|
|
|
|
|
2020-11-06 17:52:28 +00:00
|
|
|
if (SANITIZE STREQUAL "undefined")
|
|
|
|
# 3rd-party libraries usually not intended to work with UBSan.
|
|
|
|
add_compile_options(-fno-sanitize=undefined)
|
|
|
|
endif()
|
|
|
|
|
2019-02-04 14:07:01 +00:00
|
|
|
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL 1)
|
|
|
|
|
2021-02-27 16:04:32 +00:00
|
|
|
add_subdirectory (abseil-cpp-cmake)
|
2020-12-04 02:15:44 +00:00
|
|
|
add_subdirectory (antlr4-runtime-cmake)
|
2020-06-09 10:54:49 +00:00
|
|
|
add_subdirectory (boost-cmake)
|
2020-05-08 14:11:19 +00:00
|
|
|
add_subdirectory (cctz-cmake)
|
|
|
|
add_subdirectory (consistent-hashing)
|
2020-12-07 18:26:02 +00:00
|
|
|
add_subdirectory (dragonbox-cmake)
|
2020-06-09 10:54:49 +00:00
|
|
|
add_subdirectory (hyperscan-cmake)
|
2020-05-08 14:11:19 +00:00
|
|
|
add_subdirectory (jemalloc-cmake)
|
|
|
|
add_subdirectory (libcpuid-cmake)
|
2020-06-09 10:54:49 +00:00
|
|
|
add_subdirectory (libdivide)
|
|
|
|
add_subdirectory (libmetrohash)
|
|
|
|
add_subdirectory (lz4-cmake)
|
2020-05-08 14:11:19 +00:00
|
|
|
add_subdirectory (murmurhash)
|
|
|
|
add_subdirectory (replxx-cmake)
|
|
|
|
add_subdirectory (unixodbc-cmake)
|
2021-04-20 11:07:05 +00:00
|
|
|
add_subdirectory (nanodbc-cmake)
|
2021-04-05 06:16:08 +00:00
|
|
|
|
2021-05-21 18:56:22 +00:00
|
|
|
if (USE_YAML_CPP)
|
|
|
|
add_subdirectory (yaml-cpp-cmake)
|
|
|
|
endif()
|
|
|
|
|
2021-04-05 06:16:08 +00:00
|
|
|
if (USE_INTERNAL_XZ_LIBRARY)
|
|
|
|
add_subdirectory (xz)
|
|
|
|
endif()
|
2020-05-08 14:11:19 +00:00
|
|
|
|
|
|
|
add_subdirectory (poco-cmake)
|
2020-10-23 11:42:21 +00:00
|
|
|
add_subdirectory (croaring-cmake)
|
2020-05-08 14:11:19 +00:00
|
|
|
|
|
|
|
# TODO: refactor the contrib libraries below this comment.
|
|
|
|
|
2017-02-28 23:49:04 +00:00
|
|
|
if (USE_INTERNAL_ZSTD_LIBRARY)
|
2017-10-13 18:52:23 +00:00
|
|
|
add_subdirectory (zstd-cmake)
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (USE_INTERNAL_RE2_LIBRARY)
|
2018-01-22 13:47:00 +00:00
|
|
|
set(RE2_BUILD_TESTING 0 CACHE INTERNAL "")
|
2020-07-09 07:16:39 +00:00
|
|
|
add_subdirectory (re2)
|
|
|
|
add_subdirectory (re2_st)
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY)
|
2019-07-09 22:35:40 +00:00
|
|
|
add_subdirectory (double-conversion-cmake)
|
2017-02-28 23:49:04 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-08-09 20:52:55 +00:00
|
|
|
if (USE_INTERNAL_CITYHASH_LIBRARY)
|
2018-06-19 18:09:09 +00:00
|
|
|
add_subdirectory (cityhash102)
|
2017-08-09 20:52:55 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (USE_INTERNAL_FARMHASH_LIBRARY)
|
|
|
|
add_subdirectory (libfarmhash)
|
|
|
|
endif ()
|
|
|
|
|
2017-02-07 21:28:13 +00:00
|
|
|
if (USE_INTERNAL_ZLIB_LIBRARY)
|
2019-01-18 15:19:53 +00:00
|
|
|
set (ZLIB_ENABLE_TESTS 0 CACHE INTERNAL "")
|
2019-01-18 23:52:21 +00:00
|
|
|
set (SKIP_INSTALL_ALL 1 CACHE INTERNAL "")
|
2018-08-28 17:53:12 +00:00
|
|
|
set (ZLIB_COMPAT 1 CACHE INTERNAL "") # also enables WITH_GZFILEOP
|
2018-11-10 20:09:07 +00:00
|
|
|
set (WITH_NATIVE_INSTRUCTIONS ${ARCH_NATIVE} CACHE INTERNAL "")
|
2018-08-28 17:53:12 +00:00
|
|
|
if (OS_FREEBSD OR ARCH_I386)
|
|
|
|
set (WITH_OPTIM 0 CACHE INTERNAL "") # Bug in assembler
|
|
|
|
endif ()
|
|
|
|
if (ARCH_AARCH64)
|
|
|
|
set(WITH_NEON 1 CACHE INTERNAL "")
|
|
|
|
set(WITH_ACLE 1 CACHE INTERNAL "")
|
|
|
|
endif ()
|
|
|
|
|
2018-03-02 00:17:25 +00:00
|
|
|
add_subdirectory (${INTERNAL_ZLIB_NAME})
|
2017-11-21 17:46:28 +00:00
|
|
|
# We should use same defines when including zlib.h as used when zlib compiled
|
|
|
|
target_compile_definitions (zlib PUBLIC ZLIB_COMPAT WITH_GZFILEOP)
|
2019-12-18 19:50:49 +00:00
|
|
|
if (ARCH_AMD64 OR ARCH_AARCH64)
|
2020-02-28 00:07:42 +00:00
|
|
|
target_compile_definitions (zlib PUBLIC X86_64 UNALIGNED_OK)
|
2017-11-30 17:09:33 +00:00
|
|
|
endif ()
|
2017-02-07 21:28:13 +00:00
|
|
|
endif ()
|
|
|
|
|
2019-03-25 14:34:52 +00:00
|
|
|
if (USE_INTERNAL_H3_LIBRARY)
|
2019-06-30 18:49:57 +00:00
|
|
|
add_subdirectory(h3-cmake)
|
2019-03-25 14:34:52 +00:00
|
|
|
endif ()
|
|
|
|
|
2018-03-02 00:17:25 +00:00
|
|
|
if (USE_INTERNAL_SSL_LIBRARY)
|
2020-10-14 20:52:52 +00:00
|
|
|
add_subdirectory (boringssl-cmake)
|
2019-01-28 13:45:56 +00:00
|
|
|
|
2020-10-14 20:52:52 +00:00
|
|
|
add_library(OpenSSL::Crypto ALIAS crypto)
|
|
|
|
add_library(OpenSSL::SSL ALIAS ssl)
|
2018-03-02 00:17:25 +00:00
|
|
|
endif ()
|
|
|
|
|
2020-05-29 10:00:12 +00:00
|
|
|
if (USE_INTERNAL_LDAP_LIBRARY)
|
2020-05-12 19:19:15 +00:00
|
|
|
add_subdirectory (openldap-cmake)
|
|
|
|
endif ()
|
|
|
|
|
2019-10-25 20:31:56 +00:00
|
|
|
function(mysql_support)
|
2019-09-24 22:28:59 +00:00
|
|
|
set(CLIENT_PLUGIN_CACHING_SHA2_PASSWORD STATIC)
|
|
|
|
set(CLIENT_PLUGIN_SHA256_PASSWORD STATIC)
|
|
|
|
set(CLIENT_PLUGIN_REMOTE_IO OFF)
|
|
|
|
set(CLIENT_PLUGIN_DIALOG OFF)
|
2019-09-28 00:27:53 +00:00
|
|
|
set(CLIENT_PLUGIN_AUTH_GSSAPI_CLIENT OFF)
|
2019-09-24 22:28:59 +00:00
|
|
|
set(CLIENT_PLUGIN_CLIENT_ED25519 OFF)
|
|
|
|
set(CLIENT_PLUGIN_MYSQL_CLEAR_PASSWORD OFF)
|
|
|
|
set(SKIP_TESTS 1)
|
2019-09-24 22:30:26 +00:00
|
|
|
if (GLIBC_COMPATIBILITY)
|
|
|
|
set(LIBM glibc-compatibility)
|
|
|
|
endif()
|
2019-10-25 20:31:56 +00:00
|
|
|
if (USE_INTERNAL_ZLIB_LIBRARY)
|
|
|
|
set(ZLIB_FOUND ON)
|
2020-02-28 00:07:42 +00:00
|
|
|
set(ZLIB_LIBRARY ${ZLIB_LIBRARIES})
|
2019-10-25 20:31:56 +00:00
|
|
|
set(WITH_EXTERNAL_ZLIB ON)
|
|
|
|
endif()
|
2021-01-17 15:36:13 +00:00
|
|
|
set(WITH_CURL OFF)
|
2019-09-24 22:28:59 +00:00
|
|
|
add_subdirectory (mariadb-connector-c)
|
2019-10-25 20:31:56 +00:00
|
|
|
endfunction()
|
|
|
|
if (ENABLE_MYSQL AND USE_INTERNAL_MYSQL_LIBRARY)
|
|
|
|
mysql_support()
|
2018-08-02 00:49:31 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-10-06 04:40:18 +00:00
|
|
|
if (USE_INTERNAL_RDKAFKA_LIBRARY)
|
2018-08-09 23:02:52 +00:00
|
|
|
add_subdirectory (librdkafka-cmake)
|
2018-08-23 10:25:18 +00:00
|
|
|
target_include_directories(rdkafka BEFORE PRIVATE ${ZLIB_INCLUDE_DIR})
|
2019-03-22 11:18:24 +00:00
|
|
|
if(OPENSSL_INCLUDE_DIR)
|
|
|
|
target_include_directories(rdkafka BEFORE PRIVATE ${OPENSSL_INCLUDE_DIR})
|
|
|
|
endif()
|
2017-10-13 19:24:37 +00:00
|
|
|
endif ()
|
2017-10-13 20:52:42 +00:00
|
|
|
|
2019-01-14 13:06:14 +00:00
|
|
|
if (USE_RDKAFKA)
|
|
|
|
add_subdirectory (cppkafka-cmake)
|
|
|
|
endif()
|
|
|
|
|
2019-12-15 03:00:53 +00:00
|
|
|
if (ENABLE_ICU AND USE_INTERNAL_ICU_LIBRARY)
|
|
|
|
add_subdirectory (icu-cmake)
|
|
|
|
endif ()
|
|
|
|
|
2020-01-10 05:08:29 +00:00
|
|
|
if(USE_INTERNAL_SNAPPY_LIBRARY)
|
|
|
|
set(SNAPPY_BUILD_TESTS 0 CACHE INTERNAL "")
|
|
|
|
|
|
|
|
add_subdirectory(snappy)
|
|
|
|
|
|
|
|
set (SNAPPY_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/snappy")
|
|
|
|
endif()
|
|
|
|
|
2018-10-01 16:44:55 +00:00
|
|
|
if (USE_INTERNAL_PARQUET_LIBRARY)
|
2019-02-19 20:51:44 +00:00
|
|
|
# We dont use arrow's cmakefiles because they uses too many depends and download some libs in compile time
|
2020-11-07 16:49:36 +00:00
|
|
|
# But you can update auto-generated parquet files manually:
|
|
|
|
# cd {BUILD_DIR}/contrib/arrow/cpp/src/parquet && mkdir -p build && cd build
|
|
|
|
# cmake .. -DARROW_COMPUTE=ON -DARROW_PARQUET=ON -DARROW_SIMD_LEVEL=NONE -DARROW_VERBOSE_THIRDPARTY_BUILD=ON
|
|
|
|
# -DARROW_BUILD_SHARED=1 -DARROW_BUILD_UTILITIES=OFF -DARROW_BUILD_INTEGRATION=OFF
|
|
|
|
# -DBoost_FOUND=1 -DARROW_TEST_LINKAGE="shared"
|
|
|
|
# make -j8
|
|
|
|
# copy {BUILD_DIR}/contrib/arrow/cpp/src/parquet/*.cpp,*.h -> {BUILD_DIR}/contrib/arrow-cmake/cpp/src/parquet/
|
2019-02-19 20:51:44 +00:00
|
|
|
|
|
|
|
# Also useful parquet reader:
|
2020-11-07 16:49:36 +00:00
|
|
|
# cd {BUILD_DIR}/contrib/arrow/cpp && mkdir -p build && cd build
|
|
|
|
# cmake .. -DARROW_PARQUET=1 -DARROW_WITH_SNAPPY=1 -DPARQUET_BUILD_EXECUTABLES=1
|
|
|
|
# make -j8
|
|
|
|
# {BUILD_DIR}/contrib/arrow/cpp/build/release/parquet-reader some_file.parquet
|
2019-02-19 20:51:44 +00:00
|
|
|
|
|
|
|
add_subdirectory(arrow-cmake)
|
2019-12-18 15:04:43 +00:00
|
|
|
|
|
|
|
# The library is large - avoid bloat.
|
|
|
|
target_compile_options (${ARROW_LIBRARY} PRIVATE -g0)
|
|
|
|
target_compile_options (${THRIFT_LIBRARY} PRIVATE -g0)
|
|
|
|
target_compile_options (${PARQUET_LIBRARY} PRIVATE -g0)
|
2019-02-19 20:51:44 +00:00
|
|
|
endif()
|
2018-10-01 16:44:55 +00:00
|
|
|
|
2020-01-08 09:13:12 +00:00
|
|
|
if (USE_INTERNAL_AVRO_LIBRARY)
|
2020-01-10 05:08:29 +00:00
|
|
|
add_subdirectory(avro-cmake)
|
2019-02-19 20:51:44 +00:00
|
|
|
endif()
|
2018-10-01 16:44:55 +00:00
|
|
|
|
2019-01-25 20:12:15 +00:00
|
|
|
if(USE_INTERNAL_GTEST_LIBRARY)
|
2020-07-09 07:16:39 +00:00
|
|
|
set(GOOGLETEST_VERSION 1.10.0) # master
|
|
|
|
# Google Test from sources
|
|
|
|
add_subdirectory(${ClickHouse_SOURCE_DIR}/contrib/googletest/googletest ${CMAKE_CURRENT_BINARY_DIR}/googletest)
|
|
|
|
# avoid problems with <regexp.h>
|
|
|
|
target_compile_definitions (gtest INTERFACE GTEST_HAS_POSIX_RE=0)
|
2019-01-25 20:12:15 +00:00
|
|
|
elseif(GTEST_SRC_DIR)
|
|
|
|
add_subdirectory(${GTEST_SRC_DIR}/googletest ${CMAKE_CURRENT_BINARY_DIR}/googletest)
|
|
|
|
target_compile_definitions(gtest INTERFACE GTEST_HAS_POSIX_RE=0)
|
|
|
|
endif()
|
2018-11-16 12:22:51 +00:00
|
|
|
|
2021-05-22 12:22:38 +00:00
|
|
|
if (USE_EMBEDDED_COMPILER)
|
2018-07-16 14:13:15 +00:00
|
|
|
# ld: unknown option: --color-diagnostics
|
2018-08-20 16:34:28 +00:00
|
|
|
if (APPLE)
|
2018-07-16 14:13:15 +00:00
|
|
|
set (LINKER_SUPPORTS_COLOR_DIAGNOSTICS 0 CACHE INTERNAL "")
|
|
|
|
endif ()
|
2021-05-22 12:22:38 +00:00
|
|
|
|
2018-11-10 20:09:07 +00:00
|
|
|
set (LLVM_ENABLE_EH 1 CACHE INTERNAL "")
|
|
|
|
set (LLVM_ENABLE_RTTI 1 CACHE INTERNAL "")
|
2019-12-29 20:06:44 +00:00
|
|
|
set (LLVM_ENABLE_PIC 0 CACHE INTERNAL "")
|
2019-12-19 16:49:32 +00:00
|
|
|
set (LLVM_TARGETS_TO_BUILD "X86;AArch64" CACHE STRING "")
|
2021-03-29 13:09:50 +00:00
|
|
|
|
|
|
|
# Need to use C++17 since the compilation is not possible with C++20 currently, due to ambiguous operator != etc.
|
|
|
|
# LLVM project will set its default value for the -std=... but our global setting from CMake will override it.
|
|
|
|
set (CMAKE_CXX_STANDARD_bak ${CMAKE_CXX_STANDARD})
|
|
|
|
set (CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2018-05-09 20:31:03 +00:00
|
|
|
add_subdirectory (llvm/llvm)
|
2021-03-29 13:09:50 +00:00
|
|
|
|
|
|
|
set (CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD_bak})
|
|
|
|
unset (CMAKE_CXX_STANDARD_bak)
|
2018-05-09 20:31:03 +00:00
|
|
|
endif ()
|
2018-08-26 01:58:56 +00:00
|
|
|
|
2018-12-05 13:24:45 +00:00
|
|
|
if (USE_INTERNAL_LIBGSASL_LIBRARY)
|
2018-12-08 03:48:17 +00:00
|
|
|
add_subdirectory(libgsasl)
|
2018-12-05 13:24:45 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (USE_INTERNAL_LIBXML2_LIBRARY)
|
|
|
|
add_subdirectory(libxml2-cmake)
|
|
|
|
endif ()
|
|
|
|
|
2019-02-02 14:17:51 +00:00
|
|
|
if (USE_INTERNAL_BROTLI_LIBRARY)
|
|
|
|
add_subdirectory(brotli-cmake)
|
2019-03-21 09:02:42 +00:00
|
|
|
target_compile_definitions(brotli PRIVATE BROTLI_BUILD_PORTABLE=1)
|
2019-02-02 13:33:50 +00:00
|
|
|
endif ()
|
|
|
|
|
2019-01-23 19:19:23 +00:00
|
|
|
if (USE_INTERNAL_PROTOBUF_LIBRARY)
|
2020-05-22 20:45:13 +00:00
|
|
|
add_subdirectory(protobuf-cmake)
|
2019-01-23 19:19:23 +00:00
|
|
|
endif ()
|
|
|
|
|
2018-11-19 08:17:09 +00:00
|
|
|
if (USE_INTERNAL_HDFS3_LIBRARY)
|
|
|
|
add_subdirectory(libhdfs3-cmake)
|
|
|
|
endif ()
|
2018-11-23 20:41:38 +00:00
|
|
|
|
2020-05-22 20:45:13 +00:00
|
|
|
if (USE_INTERNAL_GRPC_LIBRARY)
|
|
|
|
add_subdirectory(grpc-cmake)
|
|
|
|
endif ()
|
|
|
|
|
2020-05-27 19:11:04 +00:00
|
|
|
if (USE_INTERNAL_AWS_S3_LIBRARY)
|
2019-12-03 16:23:24 +00:00
|
|
|
add_subdirectory(aws-s3-cmake)
|
2019-12-18 14:44:19 +00:00
|
|
|
|
|
|
|
# The library is large - avoid bloat.
|
|
|
|
target_compile_options (aws_s3 PRIVATE -g0)
|
|
|
|
target_compile_options (aws_s3_checksums PRIVATE -g0)
|
2020-05-27 19:11:04 +00:00
|
|
|
|
2019-12-03 16:23:24 +00:00
|
|
|
endif ()
|
|
|
|
|
2018-10-11 16:22:50 +00:00
|
|
|
if (USE_BASE64)
|
|
|
|
add_subdirectory (base64-cmake)
|
2018-11-23 18:33:56 +00:00
|
|
|
endif()
|
2019-03-23 19:40:16 +00:00
|
|
|
|
2019-05-07 23:31:35 +00:00
|
|
|
if (USE_SIMDJSON)
|
|
|
|
add_subdirectory (simdjson-cmake)
|
|
|
|
endif()
|
2019-06-27 15:13:19 +00:00
|
|
|
|
2019-07-22 23:41:06 +00:00
|
|
|
if (USE_FASTOPS)
|
|
|
|
add_subdirectory (fastops-cmake)
|
|
|
|
endif()
|
2020-05-20 04:28:55 +00:00
|
|
|
|
2020-07-07 18:43:38 +00:00
|
|
|
if (USE_AMQPCPP OR USE_CASSANDRA)
|
|
|
|
add_subdirectory (libuv)
|
|
|
|
endif()
|
2020-05-20 04:28:55 +00:00
|
|
|
if (USE_AMQPCPP)
|
|
|
|
add_subdirectory (amqpcpp-cmake)
|
|
|
|
endif()
|
2019-01-27 16:51:05 +00:00
|
|
|
if (USE_CASSANDRA)
|
2021-03-29 13:09:50 +00:00
|
|
|
# Need to use C++17 since the compilation is not possible with C++20 currently.
|
2021-03-29 10:52:09 +00:00
|
|
|
set (CMAKE_CXX_STANDARD_bak ${CMAKE_CXX_STANDARD})
|
|
|
|
set (CMAKE_CXX_STANDARD 17)
|
2021-03-29 13:09:50 +00:00
|
|
|
|
2020-06-03 15:07:37 +00:00
|
|
|
add_subdirectory (cassandra)
|
2021-03-29 13:09:50 +00:00
|
|
|
|
2021-03-29 10:52:09 +00:00
|
|
|
set (CMAKE_CXX_STANDARD ${CMAKE_CXX_STANDARD_bak})
|
|
|
|
unset (CMAKE_CXX_STANDARD_bak)
|
2020-05-19 02:21:27 +00:00
|
|
|
endif()
|
2020-05-26 20:41:57 +00:00
|
|
|
|
2021-01-17 15:38:29 +00:00
|
|
|
# Should go before:
|
|
|
|
# - sentry-native
|
|
|
|
add_subdirectory (curl-cmake)
|
|
|
|
|
2020-05-27 19:11:04 +00:00
|
|
|
if (USE_SENTRY)
|
|
|
|
add_subdirectory (sentry-native)
|
|
|
|
endif()
|
|
|
|
|
2020-05-22 10:58:29 +00:00
|
|
|
add_subdirectory (fmtlib-cmake)
|
2020-05-26 20:41:57 +00:00
|
|
|
|
2020-07-29 11:00:04 +00:00
|
|
|
if (USE_STATS)
|
|
|
|
add_subdirectory (stats-cmake)
|
|
|
|
add_subdirectory (gcem)
|
|
|
|
endif()
|
2020-07-16 20:32:32 +00:00
|
|
|
|
|
|
|
if (USE_KRB5)
|
|
|
|
add_subdirectory (krb5-cmake)
|
|
|
|
if (USE_CYRUS_SASL)
|
|
|
|
add_subdirectory (cyrus-sasl-cmake)
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-09-02 09:13:59 +00:00
|
|
|
|
|
|
|
if (USE_INTERNAL_ROCKSDB_LIBRARY)
|
2020-11-11 01:39:09 +00:00
|
|
|
add_subdirectory(rocksdb-cmake)
|
2020-09-02 09:13:59 +00:00
|
|
|
endif()
|
2020-12-05 21:32:03 +00:00
|
|
|
|
2020-12-10 00:36:31 +00:00
|
|
|
if (USE_LIBPQXX)
|
|
|
|
add_subdirectory (libpq-cmake)
|
|
|
|
add_subdirectory (libpqxx-cmake)
|
|
|
|
endif()
|
|
|
|
|
2020-12-24 20:10:47 +00:00
|
|
|
if (USE_NURAFT)
|
|
|
|
add_subdirectory(nuraft-cmake)
|
|
|
|
endif()
|
|
|
|
|
2020-12-05 17:09:12 +00:00
|
|
|
add_subdirectory(fast_float)
|
2020-12-09 23:26:01 +00:00
|
|
|
|