From 4ff7009c3c4aafd93aa499859960567104fdcef1 Mon Sep 17 00:00:00 2001 From: Alexey Korepanov Date: Fri, 7 Feb 2025 20:43:13 +0000 Subject: [PATCH] blas build with openblas/blis/etc: use libraries and linker flags from from pkg-config --- ggml/src/ggml-blas/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml/src/ggml-blas/CMakeLists.txt b/ggml/src/ggml-blas/CMakeLists.txt index 0bf3c05d9..117416b98 100644 --- a/ggml/src/ggml-blas/CMakeLists.txt +++ b/ggml/src/ggml-blas/CMakeLists.txt @@ -54,6 +54,8 @@ if (BLAS_FOUND) endif() if (DepBLAS_FOUND) set(BLAS_INCLUDE_DIRS ${DepBLAS_INCLUDE_DIRS}) + set(BLAS_LIBRARIES ${DepBLAS_LIBRARIES}) + set(BLAS_LINKER_FLAGS ${DepBLAS_LINKER_FLAGS}) else() message(WARNING "BLAS_INCLUDE_DIRS neither been provided nor been automatically" " detected by pkgconfig, trying to find cblas.h from possible paths...")