Skip to content

Commit 7ac5a42

Browse files
authored
cmake: skip cvector-generator and export-lora when CPU backend is disabled (#24053)
1 parent e3ba22d commit 7ac5a42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ else()
3333
if (GGML_RPC)
3434
add_subdirectory(rpc)
3535
endif()
36-
if (NOT GGML_BACKEND_DL)
37-
# these examples use the backends directly and cannot be built with dynamic loading
36+
if (NOT GGML_BACKEND_DL AND GGML_CPU)
37+
# these tools use backends directly (no dynamic loading) and depend on CPU backend symbols
3838
add_subdirectory(cvector-generator)
3939
add_subdirectory(export-lora)
4040
endif()

0 commit comments

Comments
 (0)