contrib/dragonbox: add ALIAS library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:16:23 +03:00
parent 3c0ca15b47
commit 2aa7fb28a0
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/dragonbox") set(LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/dragonbox")
add_library(dragonbox_to_chars "${LIBRARY_DIR}/source/dragonbox_to_chars.cpp") add_library(_dragonbox_to_chars "${LIBRARY_DIR}/source/dragonbox_to_chars.cpp")
target_include_directories(_dragonbox_to_chars SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include/")
target_include_directories(dragonbox_to_chars SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include/") add_library(ch_contrib::dragonbox_to_chars ALIAS _dragonbox_to_chars)

View File

@ -316,7 +316,7 @@ target_link_libraries (clickhouse_common_io
PUBLIC PUBLIC
common common
ch_contrib::double_conversion ch_contrib::double_conversion
dragonbox_to_chars ch_contrib::dragonbox_to_chars
) )
# Use X86 AVX2/AVX512 instructions to accelerate filter operations # Use X86 AVX2/AVX512 instructions to accelerate filter operations

View File

@ -68,7 +68,7 @@ add_executable (zlib_ng_bug zlib_ng_bug.cpp)
target_link_libraries (zlib_ng_bug PRIVATE ch_contrib::zlib) target_link_libraries (zlib_ng_bug PRIVATE ch_contrib::zlib)
add_executable (dragonbox_test dragonbox_test.cpp) 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) add_executable (zstd_buffers zstd_buffers.cpp)
target_link_libraries (zstd_buffers PRIVATE clickhouse_common_io) target_link_libraries (zstd_buffers PRIVATE clickhouse_common_io)