diff options
author | eiery <19350831+eiery@users.noreply.github.com> | 2023-04-08 07:15:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 11:15:17 +0000 |
commit | f2d1c472946dee2aba9077e8df73346796752b10 (patch) | |
tree | e7e01f63e49bf92170068e1c2a6fd53d14fb7bda | |
parent | 317fb12fbd7cef5d86476574bffe0e904af884ca (diff) |
cmake should link openblas properly with -lopenblas like how it's done in the makefile (#839)
-rw-r--r-- | CMakeLists.txt | 1 |
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() |