mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-27 23:50:20 -05:00
cmake: skip cvector-generator and export-lora when CPU backend is disabled (#24053)
This commit is contained in:
parent
e3ba22d6cc
commit
7ac5a4225e
@ -33,8 +33,8 @@ else()
|
|||||||
if (GGML_RPC)
|
if (GGML_RPC)
|
||||||
add_subdirectory(rpc)
|
add_subdirectory(rpc)
|
||||||
endif()
|
endif()
|
||||||
if (NOT GGML_BACKEND_DL)
|
if (NOT GGML_BACKEND_DL AND GGML_CPU)
|
||||||
# these examples use the backends directly and cannot be built with dynamic loading
|
# these tools use backends directly (no dynamic loading) and depend on CPU backend symbols
|
||||||
add_subdirectory(cvector-generator)
|
add_subdirectory(cvector-generator)
|
||||||
add_subdirectory(export-lora)
|
add_subdirectory(export-lora)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user