]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake : enable building llama.cpp using system libggml (#12321)
authorChristian Kastner <redacted>
Mon, 17 Mar 2025 09:05:23 +0000 (10:05 +0100)
committerGitHub <redacted>
Mon, 17 Mar 2025 09:05:23 +0000 (11:05 +0200)
commit374101fd742bb35cb9bf46c86836e54d51191ffd
tree0f76a0508bf973f9a996084146e49371d6f63ac0
parentb3c9a65673a63a6c9a75da24ee00d13499494e0c
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.
CMakeLists.txt
cmake/common.cmake
ggml/cmake/common.cmake [new file with mode: 0644]
ggml/src/CMakeLists.txt