Skip to content

Commit 5353298

Browse files
authored
cmake: remove CMP0194 policy to restore MSVC builds (ggml-org#21934)
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>
1 parent e73b157 commit 5353298

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

ggml/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
cmake_minimum_required(VERSION 3.14...3.28) # for add_link_options and implicit target directories.
22

3-
# ref: https://cmake.org/cmake/help/latest/policy/CMP0194.html
4-
# MSVC is not a valid assembler for the ASM language.
5-
# Set to NEW to avoid a warning on CMake 4.1+ with MSVC.
6-
if (POLICY CMP0194)
7-
cmake_policy(SET CMP0194 NEW)
8-
endif()
93
project("ggml" C CXX ASM)
104

115
### GGML Version

0 commit comments

Comments
 (0)