]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
cmake : fix usage issues (#1257)
authorKai Pastor <redacted>
Tue, 22 Jul 2025 18:13:21 +0000 (20:13 +0200)
committerGitHub <redacted>
Tue, 22 Jul 2025 18:13:21 +0000 (21:13 +0300)
commit0d274bdd58a2688c7944dc9bde8fb5421855e5be
treed3bb639a08c5227bf705d69fdb4ccb12857a3eef
parent890aa3528823a1c61e3cb426663e8ee0435bbc6f
cmake : fix usage issues (#1257)

* CMake config: Create target only once

Fix error on repeated find_package(ggml).
For simplicity, check only for the top-level ggml::ggml.

* CMake config: Add CUDA link libs

* CMake config: Add OpenCL link libs

* CMake config: Use canonical find_dependency

Use set and append to control link lib variables.
Apply more $<LINK_ONLY...>.

* CMake config: Wire OpenMP dependency
cmake/ggml-config.cmake.in
src/ggml-cpu/CMakeLists.txt