Skip to content

Commit

Permalink
cmake should link openblas properly with -lopenblas like how it's don…
Browse files Browse the repository at this point in the history
…e in the makefile (ggml-org#839)
  • Loading branch information
eiery authored Apr 8, 2023
1 parent 317fb12 commit f2d1c47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f2d1c47

Please sign in to comment.