Fix Accelerate link in CMake

This commit is contained in:
Georgi Gerganov 2023-03-19 20:06:30 +02:00
parent 15c4e11574
commit 965d8fd3d8
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -71,7 +71,7 @@ if (APPLE AND LLAMA_ACCELERATE)
message(STATUS "Accelerate framework found")
add_compile_definitions(GGML_USE_ACCELERATE)
add_link_options(${ACCELERATE_FRAMEWORK})
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} ${ACCELERATE_FRAMEWORK})
else()
message(WARNING "Accelerate framework not found")
endif()
@ -207,4 +207,4 @@ target_link_libraries(ggml PUBLIC Threads::Threads)
target_link_libraries(ggml PRIVATE ${LLAMA_EXTRA_LIBS})
target_include_directories(ggml PUBLIC .)
target_link_libraries(llama ggml utils)
target_link_libraries(quantize ggml utils)
target_link_libraries(quantize ggml utils)