From: Erik Scholz Date: Wed, 22 Mar 2023 16:37:10 +0000 (+0100) Subject: cmake: make llama an actual library (#392) X-Git-Tag: gguf-v0.4.0~1155 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4122dffff958cd137175b58f1f27c0913528d7ba;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake: make llama an actual library (#392) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 400cecf9..d952afb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,6 +217,7 @@ add_library(utils OBJECT target_include_directories(utils PUBLIC .) target_compile_features(utils PUBLIC cxx_std_11) # don't bump +target_link_libraries(utils PRIVATE ${LLAMA_EXTRA_LIBS}) add_library(ggml OBJECT ggml.c @@ -226,12 +227,13 @@ target_include_directories(ggml PUBLIC .) target_compile_features(ggml PUBLIC c_std_11) # don't bump target_link_libraries(ggml PRIVATE Threads::Threads ${LLAMA_EXTRA_LIBS}) -add_library(llama OBJECT +add_library(llama llama.cpp llama.h) target_include_directories(llama PUBLIC .) target_compile_features(llama PUBLIC cxx_std_11) # don't bump +target_link_libraries(llama PRIVATE utils ggml ${LLAMA_EXTRA_LIBS}) # # Executables