Skip to content

Commit e807092

Browse files
authored
fix(ci): skip mtmd CLI wrappers in package builds (#2303)
1 parent ddc0d15 commit e807092

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ if (LLAMA_BUILD)
176176
# Building llava
177177
add_subdirectory(vendor/llama.cpp/tools/mtmd)
178178

179+
# The Python package only ships mtmd as a shared library.
180+
# Upstream mtmd also defines CLI compatibility wrappers, but those are
181+
# not installed here and can fail to link in minimal Docker toolchains.
182+
foreach(target llama-llava-cli llama-gemma3-cli llama-minicpmv-cli llama-qwen2vl-cli llama-mtmd-debug)
183+
if (TARGET ${target})
184+
set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
185+
endif()
186+
endforeach()
187+
179188
if (WIN32)
180189
set_target_properties(mtmd PROPERTIES CUDA_ARCHITECTURES OFF)
181190
endif()

0 commit comments

Comments
 (0)