From c8c6deb2ff5b4b59728fe40c44866337bda50904 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com> Date: Mon, 9 May 2022 08:48:51 -0400 Subject: [PATCH] Update CMakeLists.txt --- contrib/wyhash-cmake/CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/contrib/wyhash-cmake/CMakeLists.txt b/contrib/wyhash-cmake/CMakeLists.txt index 5440917327b..679346d601a 100644 --- a/contrib/wyhash-cmake/CMakeLists.txt +++ b/contrib/wyhash-cmake/CMakeLists.txt @@ -1,9 +1,3 @@ -set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/wyhash) - -add_library (wyhash "${LIBRARY_DIR}/wyhash.h") - -target_include_directories(wyhash SYSTEM PUBLIC ${LIBRARY_DIR}) - -add_library (ch_contrib::wyhash ALIAS wyhash) - -set_target_properties(wyhash PROPERTIES LINKER_LANGUAGE CXX) +add_library(wyhash INTERFACE) +target_include_directories(wyhash SYSTEM BEFORE INTERFACE "${ClickHouse_SOURCE_DIR}/contrib/wyhash") +add_library(ch_contrib::wyhash ALIAS wyhash)