llama.cpp/ggml/cmake
Daniel Bevenius 515bd7c9a5
cmake : respect GGML_LIB_INSTALL_DIR and LLAMA_LIB_INSTALL_DIR
This commit addresses an issue where the CMake options
`GGML_LIB_INSTALL_DIR` and `LLAMA_LIB_INSTALL_DIR` currently only affect
the generated cmake config files and not the actual installation of the
libraries.

The motivation for this change is that if these options are set, a
project that uses cmake find_package to find ggml will fail to configure:
```console
$ cmake -S . -B build
CMake Error at /work/ai/llama.cpp/install/lib/cmake/ggml/ggml-config.cmake:11 (message):
  File or directory /work/ai/llama.cpp/install/llama.cpp
  referenced by variable GGML_LIB_DIR does not exist !
Call Stack (most recent call first):
  /work/ai/llama.cpp/install/lib/cmake/ggml/ggml-config.cmake:259 (set_and_check)
  CMakeLists.txt:7 (find_package)
```

Resolves: https://github.com/ggml-org/llama.cpp/issues/19748
2026-02-20 08:53:19 +01:00
..
GitVars.cmake scripts : update sync + fix cmake merge 2025-03-27 10:09:29 +02:00
common.cmake ggml-cpu : rework weak alias on apple targets (#14146) 2025-06-16 13:54:15 +08:00
ggml-config.cmake.in cmake : respect GGML_LIB_INSTALL_DIR and LLAMA_LIB_INSTALL_DIR 2026-02-20 08:53:19 +01:00