Skip to content

Commit be75572

Browse files
committed
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 <yongjoo1.ahn@samsung.com>
1 parent 4902eeb commit be75572

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ggml/src/ggml-cpu/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
553553
DOWNLOAD_EXTRACT_TIMESTAMP NEW
554554
URL_HASH MD5=${KLEIDIAI_ARCHIVE_MD5})
555555

556-
FetchContent_MakeAvailable(KleidiAI_Download)
556+
FetchContent_Populate(KleidiAI_Download)
557557
FetchContent_GetProperties(KleidiAI_Download
558558
SOURCE_DIR KLEIDIAI_SRC
559559
POPULATED KLEIDIAI_POPULATED)
@@ -564,11 +564,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
564564

565565
add_compile_definitions(GGML_USE_CPU_KLEIDIAI)
566566

567-
# Remove kleidiai target after fetching it
568-
if (TARGET kleidiai)
569-
set_target_properties(kleidiai PROPERTIES EXCLUDE_FROM_ALL TRUE)
570-
endif()
571-
572567
list(APPEND GGML_CPU_SOURCES
573568
ggml-cpu/kleidiai/kleidiai.cpp
574569
ggml-cpu/kleidiai/kernels.cpp

0 commit comments

Comments
 (0)