From 965d8fd3d8e0ab7fa7f8233ae1a738c17cd37cbe Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 19 Mar 2023 20:06:30 +0200 Subject: [PATCH] Fix Accelerate link in CMake --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 208d5c854..a685ae527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) \ No newline at end of file +target_link_libraries(quantize ggml utils)