From 2aa7fb28a0eb1a3352d3f5f61d2dd803099843e7 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 20 Jan 2022 17:16:23 +0300 Subject: [PATCH] contrib/dragonbox: add ALIAS library Signed-off-by: Azat Khuzhin --- contrib/dragonbox-cmake/CMakeLists.txt | 6 +++--- src/CMakeLists.txt | 2 +- src/IO/examples/CMakeLists.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/dragonbox-cmake/CMakeLists.txt b/contrib/dragonbox-cmake/CMakeLists.txt index 604394c6dce..6644ac3c313 100644 --- a/contrib/dragonbox-cmake/CMakeLists.txt +++ b/contrib/dragonbox-cmake/CMakeLists.txt @@ -1,5 +1,5 @@ set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/dragonbox") -add_library(dragonbox_to_chars "${LIBRARY_DIR}/source/dragonbox_to_chars.cpp") - -target_include_directories(dragonbox_to_chars SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include/") +add_library(_dragonbox_to_chars "${LIBRARY_DIR}/source/dragonbox_to_chars.cpp") +target_include_directories(_dragonbox_to_chars SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include/") +add_library(ch_contrib::dragonbox_to_chars ALIAS _dragonbox_to_chars) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b38873e8bd2..413deec6a4a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -316,7 +316,7 @@ target_link_libraries (clickhouse_common_io PUBLIC common ch_contrib::double_conversion - dragonbox_to_chars + ch_contrib::dragonbox_to_chars ) # Use X86 AVX2/AVX512 instructions to accelerate filter operations diff --git a/src/IO/examples/CMakeLists.txt b/src/IO/examples/CMakeLists.txt index d79aaa48d83..8c9723a78fb 100644 --- a/src/IO/examples/CMakeLists.txt +++ b/src/IO/examples/CMakeLists.txt @@ -68,7 +68,7 @@ add_executable (zlib_ng_bug zlib_ng_bug.cpp) target_link_libraries (zlib_ng_bug PRIVATE ch_contrib::zlib) add_executable (dragonbox_test dragonbox_test.cpp) -target_link_libraries (dragonbox_test PRIVATE dragonbox_to_chars) +target_link_libraries (dragonbox_test PRIVATE ch_contrib::dragonbox_to_chars) add_executable (zstd_buffers zstd_buffers.cpp) target_link_libraries (zstd_buffers PRIVATE clickhouse_common_io)