Skip to content

Commit 2664317

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 2376b77 commit 2664317

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
@@ -560,7 +560,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
560560
DOWNLOAD_EXTRACT_TIMESTAMP NEW
561561
URL_HASH MD5=${KLEIDIAI_ARCHIVE_MD5})
562562

563-
FetchContent_MakeAvailable(KleidiAI_Download)
563+
FetchContent_Populate(KleidiAI_Download)
564564
FetchContent_GetProperties(KleidiAI_Download
565565
SOURCE_DIR KLEIDIAI_SRC
566566
POPULATED KLEIDIAI_POPULATED)
@@ -571,11 +571,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
571571

572572
add_compile_definitions(GGML_USE_CPU_KLEIDIAI)
573573

574-
# Remove kleidiai target after fetching it
575-
if (TARGET kleidiai)
576-
set_target_properties(kleidiai PROPERTIES EXCLUDE_FROM_ALL TRUE)
577-
endif()
578-
579574
list(APPEND GGML_CPU_SOURCES
580575
ggml-cpu/kleidiai/kleidiai.cpp
581576
ggml-cpu/kleidiai/kernels.cpp

0 commit comments

Comments
 (0)