From dc7affd8134c113bc3b0f8d475eba84eb1c98942 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 20 Jan 2022 17:22:24 +0300 Subject: [PATCH] contrib/libmetrohash: add ALIAS library Signed-off-by: Azat Khuzhin --- contrib/libmetrohash/CMakeLists.txt | 5 +++-- src/Functions/CMakeLists.txt | 2 +- src/Interpreters/examples/CMakeLists.txt | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/contrib/libmetrohash/CMakeLists.txt b/contrib/libmetrohash/CMakeLists.txt index 4ec5a58717d..9f7984acf8b 100644 --- a/contrib/libmetrohash/CMakeLists.txt +++ b/contrib/libmetrohash/CMakeLists.txt @@ -2,5 +2,6 @@ set (SRCS src/metrohash64.cpp src/metrohash128.cpp ) -add_library(metrohash ${SRCS}) -target_include_directories(metrohash PUBLIC src) +add_library(_metrohash ${SRCS}) +target_include_directories(_metrohash PUBLIC src) +add_library(ch_contrib::metrohash ALIAS _metrohash) diff --git a/src/Functions/CMakeLists.txt b/src/Functions/CMakeLists.txt index 9634771aac5..704b8f1ac83 100644 --- a/src/Functions/CMakeLists.txt +++ b/src/Functions/CMakeLists.txt @@ -20,7 +20,7 @@ target_link_libraries(clickhouse_functions clickhouse_parsers ch_contrib::consistent_hashing dbms - metrohash + ch_contrib::metrohash murmurhash PRIVATE diff --git a/src/Interpreters/examples/CMakeLists.txt b/src/Interpreters/examples/CMakeLists.txt index 58b9ae3ee6f..0c0bcb88f7a 100644 --- a/src/Interpreters/examples/CMakeLists.txt +++ b/src/Interpreters/examples/CMakeLists.txt @@ -5,7 +5,7 @@ add_executable (hash_map_lookup hash_map_lookup.cpp) target_link_libraries (hash_map_lookup PRIVATE dbms) 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) 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) 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) target_link_libraries (hash_map_string_small PRIVATE dbms ch_contrib::sparsehash)