diff --git a/CMakeLists.txt b/CMakeLists.txt index aed0d85c..44cd36d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ PROJECT (CLICKHOUSE-CLIENT) ENDIF () IF (WITH_SYSTEM_CITYHASH) - FIND_PACKAGE(cityhash REQUIRED) + FIND_LIBRARY(SYSTEM_CITYHASH NAMES cityhash REQUIRED) ELSE () INCLUDE_DIRECTORIES (contrib/cityhash/cityhash) SUBDIRS (contrib/cityhash/cityhash) diff --git a/clickhouse/CMakeLists.txt b/clickhouse/CMakeLists.txt index 67663ec5..e67ba816 100644 --- a/clickhouse/CMakeLists.txt +++ b/clickhouse/CMakeLists.txt @@ -42,7 +42,7 @@ ADD_LIBRARY (clickhouse-cpp-lib ${clickhouse-cpp-lib-src}) SET_TARGET_PROPERTIES (clickhouse-cpp-lib PROPERTIES LINKER_LANGUAGE CXX) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib absl::int128 - cityhash::cityhash + cityhash lz4::lz4 ) TARGET_INCLUDE_DIRECTORIES (clickhouse-cpp-lib diff --git a/contrib/cityhash/cityhash/CMakeLists.txt b/contrib/cityhash/cityhash/CMakeLists.txt index d1311562..287fd91b 100644 --- a/contrib/cityhash/cityhash/CMakeLists.txt +++ b/contrib/cityhash/cityhash/CMakeLists.txt @@ -3,5 +3,3 @@ ADD_LIBRARY (cityhash STATIC ) set_property(TARGET cityhash PROPERTY POSITION_INDEPENDENT_CODE ON) - -ADD_LIBRARY (cityhash::cityhash ALIAS cityhash)