contrib/libmetrohash: add ALIAS library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:22:24 +03:00
parent dd9be82c29
commit dc7affd813
3 changed files with 6 additions and 5 deletions

View File

@ -2,5 +2,6 @@ set (SRCS
src/metrohash64.cpp src/metrohash64.cpp
src/metrohash128.cpp src/metrohash128.cpp
) )
add_library(metrohash ${SRCS}) add_library(_metrohash ${SRCS})
target_include_directories(metrohash PUBLIC src) target_include_directories(_metrohash PUBLIC src)
add_library(ch_contrib::metrohash ALIAS _metrohash)

View File

@ -20,7 +20,7 @@ target_link_libraries(clickhouse_functions
clickhouse_parsers clickhouse_parsers
ch_contrib::consistent_hashing ch_contrib::consistent_hashing
dbms dbms
metrohash ch_contrib::metrohash
murmurhash murmurhash
PRIVATE PRIVATE

View File

@ -5,7 +5,7 @@ add_executable (hash_map_lookup hash_map_lookup.cpp)
target_link_libraries (hash_map_lookup PRIVATE dbms) target_link_libraries (hash_map_lookup PRIVATE dbms)
add_executable (hash_map3 hash_map3.cpp) add_executable (hash_map3 hash_map3.cpp)
target_link_libraries (hash_map3 PRIVATE dbms ch_contrib::farmhash metrohash) target_link_libraries (hash_map3 PRIVATE dbms ch_contrib::farmhash ch_contrib::metrohash)
add_executable (hash_map_string hash_map_string.cpp) add_executable (hash_map_string hash_map_string.cpp)
target_link_libraries (hash_map_string PRIVATE dbms ch_contrib::sparsehash) target_link_libraries (hash_map_string PRIVATE dbms ch_contrib::sparsehash)
@ -14,7 +14,7 @@ add_executable (hash_map_string_2 hash_map_string_2.cpp)
target_link_libraries (hash_map_string_2 PRIVATE dbms) target_link_libraries (hash_map_string_2 PRIVATE dbms)
add_executable (hash_map_string_3 hash_map_string_3.cpp) add_executable (hash_map_string_3 hash_map_string_3.cpp)
target_link_libraries (hash_map_string_3 PRIVATE dbms ch_contrib::farmhash metrohash) target_link_libraries (hash_map_string_3 PRIVATE dbms ch_contrib::farmhash ch_contrib::metrohash)
add_executable (hash_map_string_small hash_map_string_small.cpp) add_executable (hash_map_string_small hash_map_string_small.cpp)
target_link_libraries (hash_map_string_small PRIVATE dbms ch_contrib::sparsehash) target_link_libraries (hash_map_string_small PRIVATE dbms ch_contrib::sparsehash)