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()