]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake: skip cvector-generator and export-lora when CPU backend is disabled (#24053)
authorAndrea Richiardi <redacted>
Thu, 4 Jun 2026 10:13:19 +0000 (04:13 -0600)
committerGitHub <redacted>
Thu, 4 Jun 2026 10:13:19 +0000 (13:13 +0300)
tools/CMakeLists.txt

index a60d3dab469a7b137432be161c7eb1c51999e88d..780df32661323cbb713769fd776e5c78c97bc837 100644 (file)
@@ -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()