contrib/consistent-hashing: add ALIAS library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:12:54 +03:00
parent f01d5b7641
commit 81880ac20c
3 changed files with 5 additions and 4 deletions

View File

@ -1,2 +1,3 @@
add_library(consistent-hashing consistent_hashing.cpp popcount.cpp)
target_include_directories(consistent-hashing SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_library(_consistent_hashing consistent_hashing.cpp popcount.cpp)
target_include_directories(_consistent_hashing SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_library(ch_contrib::consistent_hashing ALIAS _consistent_hashing)

View File

@ -522,7 +522,7 @@ if (TARGET ch_contrib::rapidjson)
dbms_target_link_libraries(PRIVATE ch_contrib::rapidjson)
endif()
dbms_target_link_libraries(PUBLIC consistent-hashing)
dbms_target_link_libraries(PUBLIC ch_contrib::consistent_hashing)
include ("${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake")

View File

@ -18,7 +18,7 @@ target_link_libraries(clickhouse_functions
clickhouse_dictionaries
clickhouse_dictionaries_embedded
clickhouse_parsers
consistent-hashing
ch_contrib::consistent_hashing
dbms
metrohash
murmurhash