]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cmake: fix CMP0194 warning on Windows with MSVC (#21630)
authortexasich <redacted>
Tue, 14 Apr 2026 10:47:56 +0000 (05:47 -0500)
committerGitHub <redacted>
Tue, 14 Apr 2026 10:47:56 +0000 (13:47 +0300)
commitacc37a42eaba02e57065fef3b415d9f1e64018fa
treeef8a3ed0a9f88b1bb1b47eedf7bd3ae5b605eaed
parent5a23695d5a78d2000a674fe54e5c4ecdff0a7089
cmake: fix CMP0194 warning on Windows with MSVC (#21630)

* cmake: fix CMP0194 warning on Windows with MSVC

Set CMP0194 policy to NEW before project() call in ggml/CMakeLists.txt to suppress the "MSVC is not an assembler for language ASM" warning introduced in CMake 4.1.

The ggml project enables ASM globally for Metal (macOS) and KleidiAI (ARM) backends. On Windows/MSVC, no assembler sources are used, but CMake 4.1+ warns because cl.exe is not a valid ASM compiler.

This follows the same pattern used in ggml-vulkan (CMP0114, CMP0147).

Closes ggml-org/llama.cpp#20311

* cmake: apply cisc's formatting suggestion

---------

Co-authored-by: texasich <redacted>
ggml/CMakeLists.txt