Skip to content

Commit 72c9143

Browse files
committed
ggml-cpu: move macro definitions
Signed-off-by: Aaron Teo <[email protected]>
1 parent 8459338 commit 72c9143

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ggml/src/CMakeLists.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,6 @@ if (GGML_ALL_WARNINGS)
5555
endif()
5656
endif()
5757

58-
if (GGML_VXE)
59-
add_compile_definitions(GGML_VXE)
60-
target_compile_definitions(ggml PUBLIC GGML_VXE)
61-
target_compile_definitions(ggml-base PUBLIC GGML_VXE)
62-
message(STATUS "GGML_VXE triggered")
63-
endif()
64-
65-
if (GGML_NNPA)
66-
add_compile_definitions(GGML_NNPA)
67-
target_compile_definitions(ggml PUBLIC GGML_NNPA)
68-
target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
69-
message(STATUS "GGML_NNPA triggered")
70-
endif()
71-
7258
if (GGML_LTO)
7359
include(CheckIPOSupported)
7460
check_ipo_supported(RESULT result OUTPUT output)
@@ -416,3 +402,17 @@ if (BUILD_SHARED_LIBS)
416402
target_compile_definitions(${target} PUBLIC GGML_SHARED)
417403
endforeach()
418404
endif()
405+
406+
if (GGML_VXE)
407+
add_compile_definitions(GGML_VXE)
408+
target_compile_definitions(ggml PUBLIC GGML_VXE)
409+
target_compile_definitions(ggml-base PUBLIC GGML_VXE)
410+
message(STATUS "GGML_VXE triggered")
411+
endif()
412+
413+
if (GGML_NNPA)
414+
add_compile_definitions(GGML_NNPA)
415+
target_compile_definitions(ggml PUBLIC GGML_NNPA)
416+
target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
417+
message(STATUS "GGML_NNPA triggered")
418+
endif()

0 commit comments

Comments
 (0)