Skip to content

Commit e2fefc3

Browse files
authored
Update CMakeLists.txt - Fix source for ggml-cpu (LostRuins#1474)
* Update CMakeLists.txt - Fix source for ggml-cpu * Fixes std::min adding compile define NOMINMAX seems to fix the further compile issues
1 parent 8acec90 commit e2fefc3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ find_package(Threads REQUIRED)
6565
add_compile_definitions(LOG_DISABLE_LOGS)
6666
add_compile_definitions(GGML_USE_CPU)
6767
add_compile_definitions(GGML_USE_CPU_AARCH64)
68+
add_compile_definitions(NOMINMAX)
6869

6970
if (MSVC)
7071
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
@@ -423,11 +424,11 @@ add_library(ggml
423424
ggml/src/ggml-cpu/binary-ops.cpp
424425
ggml/src/ggml-cpu/unary-ops.h
425426
ggml/src/ggml-cpu/unary-ops.cpp
426-
ggml-cpu/simd-mappings.h
427-
ggml-cpu/vec.h
428-
ggml-cpu/vec.cpp
429-
ggml-cpu/ops.h
430-
ggml-cpu/ops.cpp
427+
ggml/src/ggml-cpu/simd-mappings.h
428+
ggml/src/ggml-cpu/vec.h
429+
ggml/src/ggml-cpu/vec.cpp
430+
ggml/src/ggml-cpu/ops.h
431+
ggml/src/ggml-cpu/ops.cpp
431432
ggml/src/ggml-backend-reg.cpp
432433
ggml/include/gguf.h
433434
ggml/src/gguf.cpp

0 commit comments

Comments
 (0)