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 |
||
|---|---|---|
| .. | ||
| cmake | ||
| include | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||