From cbef39c641b6a752bc7aeba272c7c50bed4afdc7 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Mon, 23 Dec 2024 17:34:12 +0800 Subject: [PATCH] Fix build error Signed-off-by: Cai Yudong --- cmake/libs/libfaiss.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/libs/libfaiss.cmake b/cmake/libs/libfaiss.cmake index 1e99fc6ac..457b928cc 100644 --- a/cmake/libs/libfaiss.cmake +++ b/cmake/libs/libfaiss.cmake @@ -60,6 +60,7 @@ if(__PPC64) target_link_libraries(knowhere_utils PUBLIC glog::glog) endif() +find_package(LAPACK REQUIRED) if(LINUX) set(BLA_VENDOR OpenBLAS) @@ -73,7 +74,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Android" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aar find_package(OpenBLAS REQUIRED) set(BLAS_LIBRARIES OpenBLAS::OpenBLAS) else() - find_package(LAPACK REQUIRED) find_package(BLAS REQUIRED) endif()