From 72c91436f69c7b0eaf4f10087dcab4969c727255 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Sat, 21 Jun 2025 19:16:40 +0800 Subject: [PATCH] ggml-cpu: move macro definitions Signed-off-by: Aaron Teo --- ggml/src/CMakeLists.txt | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 74b0ddf42..350c6583d 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -55,20 +55,6 @@ if (GGML_ALL_WARNINGS) endif() endif() -if (GGML_VXE) - add_compile_definitions(GGML_VXE) - target_compile_definitions(ggml PUBLIC GGML_VXE) - target_compile_definitions(ggml-base PUBLIC GGML_VXE) - message(STATUS "GGML_VXE triggered") -endif() - -if (GGML_NNPA) - add_compile_definitions(GGML_NNPA) - target_compile_definitions(ggml PUBLIC GGML_NNPA) - target_compile_definitions(ggml-base PUBLIC GGML_NNPA) - message(STATUS "GGML_NNPA triggered") -endif() - if (GGML_LTO) include(CheckIPOSupported) check_ipo_supported(RESULT result OUTPUT output) @@ -416,3 +402,17 @@ if (BUILD_SHARED_LIBS) target_compile_definitions(${target} PUBLIC GGML_SHARED) endforeach() endif() + +if (GGML_VXE) + add_compile_definitions(GGML_VXE) + target_compile_definitions(ggml PUBLIC GGML_VXE) + target_compile_definitions(ggml-base PUBLIC GGML_VXE) + message(STATUS "GGML_VXE triggered") +endif() + +if (GGML_NNPA) + add_compile_definitions(GGML_NNPA) + target_compile_definitions(ggml PUBLIC GGML_NNPA) + target_compile_definitions(ggml-base PUBLIC GGML_NNPA) + message(STATUS "GGML_NNPA triggered") +endif()