From 024eccbde0baf649544bc0f7458099defa8ac43a Mon Sep 17 00:00:00 2001 From: presburger Date: Thu, 22 Aug 2024 09:56:56 +0800 Subject: [PATCH] enhance: add pkg-config for knowhere (#35433) Signed-off-by: yusheng.ma --- internal/core/thirdparty/knowhere/CMakeLists.txt | 1 + internal/core/thirdparty/knowhere/knowhere.pc.in | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 internal/core/thirdparty/knowhere/knowhere.pc.in diff --git a/internal/core/thirdparty/knowhere/CMakeLists.txt b/internal/core/thirdparty/knowhere/CMakeLists.txt index 6981d94f74..64910c9927 100644 --- a/internal/core/thirdparty/knowhere/CMakeLists.txt +++ b/internal/core/thirdparty/knowhere/CMakeLists.txt @@ -12,6 +12,7 @@ #------------------------------------------------------------------------------- # Update KNOWHERE_VERSION for the first occurrence +milvus_add_pkg_config("knowhere") set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "") set( KNOWHERE_VERSION 8c1c3b50 ) set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git") diff --git a/internal/core/thirdparty/knowhere/knowhere.pc.in b/internal/core/thirdparty/knowhere/knowhere.pc.in new file mode 100644 index 0000000000..b6dfca02dc --- /dev/null +++ b/internal/core/thirdparty/knowhere/knowhere.pc.in @@ -0,0 +1,7 @@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ + +Name: Knowhere +Description: an independent project that act as Milvus's internal core. +Version: @MILVUS_VERSION@ + +Libs: -L${libdir} -lknowhere