aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreiery <19350831+eiery@users.noreply.github.com>2023-04-08 07:15:17 -0400
committerGitHub <noreply@github.com>2023-04-08 11:15:17 +0000
commitf2d1c472946dee2aba9077e8df73346796752b10 (patch)
treee7e01f63e49bf92170068e1c2a6fd53d14fb7bda
parent317fb12fbd7cef5d86476574bffe0e904af884ca (diff)
cmake should link openblas properly with -lopenblas like how it's done in the makefile (#839)
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a434f0..07443e9 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()