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)