From 26643178fdb51682d9719502c5772949d0dbd417 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 11 Nov 2025 15:26:23 +0900 Subject: [PATCH] ggml-cpu : prevent kleidiai build/install targets * currently cmake install targets of kleidiai generate error * use `FetchContent_Populate` to disable all build/install targets of kleidiai * note that cmake would complains about the deprecation of `FetchContent_Populate` Signed-off-by: Yongjoo Ahn --- ggml/src/ggml-cpu/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ggml/src/ggml-cpu/CMakeLists.txt b/ggml/src/ggml-cpu/CMakeLists.txt index e52e050a81a14..2b8d1de89d586 100644 --- a/ggml/src/ggml-cpu/CMakeLists.txt +++ b/ggml/src/ggml-cpu/CMakeLists.txt @@ -560,7 +560,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name) DOWNLOAD_EXTRACT_TIMESTAMP NEW URL_HASH MD5=${KLEIDIAI_ARCHIVE_MD5}) - FetchContent_MakeAvailable(KleidiAI_Download) + FetchContent_Populate(KleidiAI_Download) FetchContent_GetProperties(KleidiAI_Download SOURCE_DIR KLEIDIAI_SRC POPULATED KLEIDIAI_POPULATED) @@ -571,11 +571,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name) add_compile_definitions(GGML_USE_CPU_KLEIDIAI) - # Remove kleidiai target after fetching it - if (TARGET kleidiai) - set_target_properties(kleidiai PROPERTIES EXCLUDE_FROM_ALL TRUE) - endif() - list(APPEND GGML_CPU_SOURCES ggml-cpu/kleidiai/kleidiai.cpp ggml-cpu/kleidiai/kernels.cpp