cmake : enable building llama.cpp using system libggml (#12321)
* cmake: Factor out compiler flag function from ggml llama.cpps's build requires it, too, and we may want to make use of it without add_subdirectory(ggml). * cmake: Enable building against system ggml This facilitates package maintenance for Linux distributions, where the libggml library most likely will be shipped as an individual package upon which a llama.cpp package depends.
This commit is contained in:
parent
b3c9a65673
commit
374101fd74
4 changed files with 38 additions and 28 deletions
|
@ -1,3 +1,5 @@
|
|||
include("ggml/cmake/common.cmake")
|
||||
|
||||
function(llama_add_compile_flags)
|
||||
if (LLAMA_FATAL_WARNINGS)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue