]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake should link openblas properly with -lopenblas like how it's done in the makefil...
authoreiery <redacted>
Sat, 8 Apr 2023 11:15:17 +0000 (07:15 -0400)
committerGitHub <redacted>
Sat, 8 Apr 2023 11:15:17 +0000 (11:15 +0000)
CMakeLists.txt

index 1a434f07bba0cc58776c82ce5a88ebb9dd91e3fd..07443e9420104da5d4bff8ac6550d0e7bc3c945c 100644 (file)
@@ -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()