Skip to content

Commit f2d1c47

Browse files
author
eiery
authored
cmake should link openblas properly with -lopenblas like how it's done in the makefile (#839)
1 parent 317fb12 commit f2d1c47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ if (LLAMA_OPENBLAS)
115115

116116
add_compile_definitions(GGML_USE_OPENBLAS)
117117
add_link_options(${BLAS_LIBRARIES})
118+
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} openblas)
118119
else()
119120
message(WARNING "OpenBLAS not found")
120121
endif()

0 commit comments

Comments
 (0)