]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake : add config version support (ggml/1582)
authorDaniel Bevenius <redacted>
Wed, 12 Aug 2026 10:46:06 +0000 (12:46 +0200)
committerGeorgi Gerganov <redacted>
Wed, 12 Aug 2026 11:23:43 +0000 (14:23 +0300)
commit13fd0bb55ed30216ec47ee615c0a28455baedbf0
tree195bb89e3411dcfb0f17b50da49320a199db5bd6
parent5d9e5ac30e469d44c0a5a52556de0ead03aaa5b0
cmake : add config version support (ggml/1582)

* cmake : add config version support (wip) [no ci]

This commit adds support for find_package using a version, for example:
```
find_package(ggml 0.19.0 REQUIRED)
```

examples/test-cmake has been updated to use this and build scripts have
been added to verify this manually. This is still a work in progress and
I'm not sure about the scripts and if we can find better ways to test
this but it might be useful to have for verification of changes to the
cmake build.

* cmake : add semver to ggml backends [no ci]

This commit adds a semver to the ggml backend modules files.

The motivation for this is that the backends are currently loaded just a
file extension, for example .so on linux. With the introduction of
semantic versioning installing a new version should just work but since
these files don't have a version they would get overwritten. Adding the
semver to the library names allows multiple version to be supported and
the correct one will be loaded by the code.

I've only tested this on linux and need to test on mac and win.

* Revert "cmake : add semver to ggml backends [no ci]"

This reverts commit 53a6c58a07591951324c891b9986b2cffe5c7972.

* examples : update build-install.sh and set GGML_BACKEND_DIR
ggml/CMakeLists.txt
ggml/cmake/ggml-config.cmake.in