File additional-libraries.patch of Package milvus
From 8fbc4c91cf95504efbf22f63a487f9a34e8d7062 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.com>
Date: Tue, 28 Jan 2025 12:20:32 +0100
Subject: [PATCH] additional libraries
Signed-off-by: Christian Goll <cgoll@suse.com>
---
internal/core/src/CMakeLists.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/internal/core/src/CMakeLists.txt b/internal/core/src/CMakeLists.txt
index 0c17d074..132a2666 100644
--- a/internal/core/src/CMakeLists.txt
+++ b/internal/core/src/CMakeLists.txt
@@ -14,6 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+find_package(Arrow REQUIRED)
+list(APPEND CONAN_LIBS Arrow::arrow_shared)
+find_package(AWSSDK REQUIRED COMPONENTS s3)
+list(APPEND CONAN_LIBS ${AWSSDK_LINK_LIBRARIES})
+find_package(TBB REQUIRED)
+list(APPEND CONAN_LIBS TBB::tbb)
+find_package(yaml-cpp)
+list(APPEND CONAN_LIBS yaml-cpp::yaml-cpp)
+pkg_check_modules(marisa REQUIRED IMPORTED_TARGET marisa)
+list(APPEND CONAN_LIBS PkgConfig::marisa)
+find_package(Parquet REQUIRED)
+list(APPEND CONAN_LIBS Parquet::parquet_shared)
+
+list(APPEND CONAN_LIBS ${AWSSDK_LINK_LIBRARIES} roaring)
+
if(MILVUS_GPU_VERSION STREQUAL "ON")
project(core CXX C CUDA)
else()
--
2.43.0