Skip to content

cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL#19581

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

cmake: fix KleidiAI install target failure with EXCLUDE_FROM_ALL#19581
danbev merged 2 commits intoggml-org:masterfrom
ssam18:fix-kleidiai-install-target

Conversation

@ssam18
Copy link
Contributor

@ssam18 ssam18 commented Feb 13, 2026

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
@PhantomShift
Copy link

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

@ssam18
Copy link
Contributor Author

ssam18 commented Feb 14, 2026

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
Copy link
Member

CISC commented Feb 15, 2026

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
bartowski1182 pushed a commit to bartowski1182/llama.cpp that referenced this pull request Mar 2, 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
ArberSephirotheca pushed a commit to ArberSephirotheca/llama.cpp that referenced this pull request Mar 3, 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