Skip to content

cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL - #19581

Merged
danbev merged 2 commits into
ggml-org:masterfrom
ssam18:fix-kleidiai-install-target
Feb 15, 2026
Merged

danbev merged 2 commits into
ggml-org:masterfrom
ssam18:fix-kleidiai-install-target

Conversation

@ssam18

@ssam18 ssam18 commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Fix for the bug #19501 by adding EXCLUDE_FROM_ALL to the FetchContent_Declare call for KleidiAI. This properly excludes the KleidiAI library from both the all and install targets, preventing CMake install failures when building with GGML_CPU_KLEIDIAI=ON. The KleidiAI source files are still compiled directly into libggml-cpu.so, so functionality is preserved.

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.
@ssam18
ssam18 requested a review from ggerganov as a code owner February 13, 2026 02:16
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Feb 13, 2026
Comment thread ggml/src/ggml-cpu/CMakeLists.txt Resolved
@PhantomShift

Copy link
Copy Markdown

Hi, just chiming in as the original reporter to confirm that this fixes the install target for me!

@ssam18

ssam18 commented Feb 14, 2026

Copy link
Copy Markdown
Contributor Author

Looks like CI/CD has some issues and is causing some tests to fail that are not related to this PR.

@danbev
danbev merged commit 3a00c98 into ggml-org:master Feb 15, 2026
75 of 78 checks passed
@CISC

CISC commented Feb 15, 2026

Copy link
Copy Markdown
Member

This failure is related though. :)
https://github.com/ggml-org/llama.cpp/actions/runs/22030483619/job/63654709508#step:5:424

liparetejas pushed a commit to liparetejas/llama.cpp that referenced this pull request Feb 23, 2026
…ml-org#19581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…ml-org#19581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
…ml-org#19581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
…ml-org#19581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
…9581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug #19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
…ml-org#19581)

* cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL

Fix for the bug ggml-org#19501 by adding EXCLUDE_FROM_ALL to FetchContent_Declare. This properly excludes KleidiAI from both build and install targets, preventing install failures when GGML_CPU_KLEIDIAI=ON is used.

The KleidiAI source files are still compiled into libggml-cpu.so, preserving all functionality.

* addressed code review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants