]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml-base: use MATH_LIBRARY variable instead of hardcoded 'm' (#22239)
authorGeorgi Gerganov <redacted>
Thu, 23 Apr 2026 05:22:08 +0000 (08:22 +0300)
committerGitHub <redacted>
Thu, 23 Apr 2026 05:22:08 +0000 (08:22 +0300)
commit96c1db26c4441b10bb592aaac368842fc01e5617
tree0238920f295131eca21d934edaeb0100e4a0ed86
parent4ead6fd9571df75c21599f3bafabb457e16b22c4
ggml-base: use MATH_LIBRARY variable instead of hardcoded 'm' (#22239)

Fixes #22237 — the find_library(MATH_LIBRARY m) result was being
discarded and the target linked against the literal 'm' string.

This prevents users from overriding the math library (e.g. for AMD AOCL)
via CMake variables. Now the discovered MATH_LIBRARY is used directly.
ggml/src/CMakeLists.txt