We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc0d15 commit e807092Copy full SHA for e807092
1 file changed
CMakeLists.txt
@@ -176,6 +176,15 @@ if (LLAMA_BUILD)
176
# Building llava
177
add_subdirectory(vendor/llama.cpp/tools/mtmd)
178
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
+
188
if (WIN32)
189
set_target_properties(mtmd PROPERTIES CUDA_ARCHITECTURES OFF)
190
endif()
0 commit comments