From: eiery Date: Sat, 8 Apr 2023 11:15:17 +0000 (-0400) Subject: cmake should link openblas properly with -lopenblas like how it's done in the makefil... X-Git-Tag: gguf-v0.4.0~1000 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f2d1c472946dee2aba9077e8df73346796752b10;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake should link openblas properly with -lopenblas like how it's done in the makefile (#839) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a434f07..07443e94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,7 @@ if (LLAMA_OPENBLAS) add_compile_definitions(GGML_USE_OPENBLAS) add_link_options(${BLAS_LIBRARIES}) + set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} openblas) else() message(WARNING "OpenBLAS not found") endif()