]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
cmake: fix CMP0194 warning on Windows with MSVC (llama/21630)
authortexasich <redacted>
Tue, 14 Apr 2026 10:47:56 +0000 (05:47 -0500)
committerGeorgi Gerganov <redacted>
Thu, 30 Apr 2026 08:29:08 +0000 (11:29 +0300)
commitbfdcd4a92c0302905f8c6010642e0e87685d53b1
treebcbcb651f3e9fbc7b7ca0b26822d991a560b591c
parentb732f4d9b5429c72f7e50ed7001588a4aa847380
cmake: fix CMP0194 warning on Windows with MSVC (llama/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