2021-02-27 16:04:32 +00:00
|
|
|
set(ABSL_ROOT_DIR "${ClickHouse_SOURCE_DIR}/contrib/abseil-cpp")
|
2023-09-14 15:44:32 +00:00
|
|
|
|
2021-12-09 19:31:34 +00:00
|
|
|
set(ABSL_PROPAGATE_CXX_STD ON)
|
2021-02-27 16:04:32 +00:00
|
|
|
add_subdirectory("${ABSL_ROOT_DIR}" "${ClickHouse_BINARY_DIR}/contrib/abseil-cpp")
|
|
|
|
|
2022-01-20 14:03:58 +00:00
|
|
|
add_library(_abseil_swiss_tables INTERFACE)
|
2021-02-27 16:04:32 +00:00
|
|
|
|
2022-01-20 14:03:58 +00:00
|
|
|
target_link_libraries(_abseil_swiss_tables INTERFACE
|
2021-02-27 16:04:32 +00:00
|
|
|
absl::flat_hash_map
|
|
|
|
absl::flat_hash_set
|
|
|
|
)
|
|
|
|
|
|
|
|
get_target_property(FLAT_HASH_MAP_INCLUDE_DIR absl::flat_hash_map INTERFACE_INCLUDE_DIRECTORIES)
|
2022-01-20 14:03:58 +00:00
|
|
|
target_include_directories (_abseil_swiss_tables SYSTEM BEFORE INTERFACE ${FLAT_HASH_MAP_INCLUDE_DIR})
|
2021-02-27 16:04:32 +00:00
|
|
|
|
|
|
|
get_target_property(FLAT_HASH_SET_INCLUDE_DIR absl::flat_hash_set INTERFACE_INCLUDE_DIRECTORIES)
|
2022-01-20 14:03:58 +00:00
|
|
|
target_include_directories (_abseil_swiss_tables SYSTEM BEFORE INTERFACE ${FLAT_HASH_SET_INCLUDE_DIR})
|
|
|
|
|
|
|
|
add_library(ch_contrib::abseil_swiss_tables ALIAS _abseil_swiss_tables)
|
2023-06-22 16:31:01 +00:00
|
|
|
|
|
|
|
set(ABSL_FORMAT_SRC
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/arg.cc
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/bind.cc
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/extension.cc
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/float_conversion.cc
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/output.cc
|
|
|
|
${ABSL_ROOT_DIR}/absl/strings/internal/str_format/parser.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(_abseil_str_format ${ABSL_FORMAT_SRC})
|
|
|
|
target_include_directories(_abseil_str_format PUBLIC ${ABSL_ROOT_DIR})
|
|
|
|
|
|
|
|
add_library(ch_contrib::abseil_str_format ALIAS _abseil_str_format)
|