ggml-cpu: move macro definitions

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
Aaron Teo
2025-06-21 19:16:40 +08:00
parent 84593387a7
commit 72c91436f6

View File

@@ -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()