From: Andrea Richiardi Date: Thu, 4 Jun 2026 10:13:19 +0000 (-0600) Subject: cmake: skip cvector-generator and export-lora when CPU backend is disabled (#24053) X-Git-Tag: upstream/0.0.10438~934 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7ac5a4225ef6d5203e4c637987cc187a49c58abb;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake: skip cvector-generator and export-lora when CPU backend is disabled (#24053) --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index a60d3dab4..780df3266 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -33,8 +33,8 @@ else() if (GGML_RPC) add_subdirectory(rpc) endif() - if (NOT GGML_BACKEND_DL) - # these examples use the backends directly and cannot be built with dynamic loading + if (NOT GGML_BACKEND_DL AND GGML_CPU) + # these tools use backends directly (no dynamic loading) and depend on CPU backend symbols add_subdirectory(cvector-generator) add_subdirectory(export-lora) endif()