Skip to content

cmake: remove CMP0194 policy to restore MSVC builds#21934

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
texasich:fix/cmp0194-windows-msvc-regression
Apr 19, 2026
Merged

cmake: remove CMP0194 policy to restore MSVC builds#21934
ggerganov merged 1 commit into
ggml-org:masterfrom
texasich:fix/cmp0194-windows-msvc-regression

Conversation

@texasich

@texasich texasich commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Thanks to @oobabooga for catching this: #21630 (comment)

Overview

PR #21630 added CMP0194 NEW to silence a warning, but it broke Windows MSVC+Ninja.

Additional information

the first attempt at scoping ASM to kleidiai hit an unrelated CMake scoping issue on the ARM+KleidiAI self-hosted runner, so I pivoted to a minimal revert. This removes only the 6-line CMP0194 policy block from ggml/CMakeLists.txt. project("ggml" C CXX ASM) is left untouched, which is exactly the pre-#21630 state that was working on all platforms. The CMake 4.1+ warning returns but no platform breaks.

Requirements

@texasich
texasich requested a review from ggerganov as a code owner April 15, 2026 04:31
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Apr 15, 2026

@CISC CISC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the swift fix.

@CISC

CISC commented Apr 15, 2026

Copy link
Copy Markdown
Member

@texasich
texasich force-pushed the fix/cmp0194-windows-msvc-regression branch from 4881bf5 to 47af609 Compare April 15, 2026 12:54
@CISC

CISC commented Apr 15, 2026

Copy link
Copy Markdown
Member

@texasich
texasich force-pushed the fix/cmp0194-windows-msvc-regression branch from 47af609 to cecf0c7 Compare April 15, 2026 13:39
@texasich texasich changed the title cmake: scope ASM to kleidiai on Windows make: remove CMP0194 policy to restore MSVC builds Apr 15, 2026
@texasich texasich changed the title make: remove CMP0194 policy to restore MSVC builds cmake: remove CMP0194 policy to restore MSVC builds Apr 15, 2026
@Aflah012

Copy link
Copy Markdown

This PR want to fix the same problem as #21969

ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630
@CISC

CISC commented Apr 18, 2026

Copy link
Copy Markdown
Member

@texasich No progress? Should we merge as-is?

@CISC CISC added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Apr 18, 2026
@texasich

Copy link
Copy Markdown
Contributor Author

yeah let's merge this as is. the warning is cosmetic and nobody's pipeline should break over a fix for it. i'll take another crack at scoping ASM properly once i have access to an ARM runner to test against. @CISC

@ggerganov
ggerganov merged commit 09b4efa into ggml-org:master Apr 19, 2026
48 of 51 checks passed
ArberSephirotheca pushed a commit to ArberSephirotheca/llama.cpp that referenced this pull request Apr 21, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Apr 23, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
fewtarius pushed a commit to fewtarius/CachyLLama that referenced this pull request May 30, 2026
ggml-org#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: ggml-org#21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
MrLordCat referenced this pull request in MrLordCat/llama.cpp-with-GUI Jul 16, 2026
#21630 added the CMP0194 NEW policy to silence a CMake warning, but on Windows runners it caused CMake to prefer the MinGW toolchain for ASM and broke MSVC builds.

Reverting only that policy block restores the previous working behavior. The CMake 4.1+ warning comes back, but that is cosmetic and does not break any platform.

Reported-by: oobabooga

Refs: #21630

Co-authored-by: texasich <texasich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile bug: Can no longer configure CMake on MSVC with CMP0194 set to NEW

4 participants