Update CMakeLists.txt

project("ggml" C CXX ASM) forces generic ASM, which MSVC cannot satisfy under CMP0194 NEW
This commit is contained in:
Ben 2026-04-15 15:00:27 -07:00 committed by GitHub
parent 408225bb1a
commit 65b8574170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,12 @@ cmake_minimum_required(VERSION 3.14...3.28) # for add_link_options and implicit
if (POLICY CMP0194)
cmake_policy(SET CMP0194 NEW)
endif()
project("ggml" C CXX ASM)
#("ggml" C CXX ASM) forces generic ASM, which MSVC cannot satisfy under CMP0194 NEW
if (MSVC)
project("ggml" C CXX ASM_MASM)
else()
project("ggml" C CXX ASM)
endif()
### GGML Version
set(GGML_VERSION_MAJOR 0)