Skip to content

cmake: remove CMP0194 policy to restore MSVC builds#21934

Open
texasich wants to merge 1 commit intoggml-org:masterfrom
texasich:fix/cmp0194-windows-msvc-regression
Open

cmake: remove CMP0194 policy to restore MSVC builds#21934
texasich wants to merge 1 commit intoggml-org:masterfrom
texasich:fix/cmp0194-windows-msvc-regression

Conversation

@texasich
Copy link
Copy Markdown
Contributor

@texasich texasich commented Apr 15, 2026

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
Copy link
Copy Markdown
Member

@CISC CISC left a comment

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
Copy link
Copy Markdown
Member

CISC commented Apr 15, 2026

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

CISC commented Apr 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
@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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants