Skip to content

Commit 9e8dd23

Browse files
hongkongkiwiclaude
andcommitted
fix(llama-cpp-sys-2): include CMakeLists.txt files required for MTMD feature
Add missing tools/CMakeLists.txt and tools/mtmd/CMakeLists.txt to the include patterns in Cargo.toml. These files are required when building with the 'mtmd' feature enabled, as CMake attempts to build the tools directory but the CMakeLists.txt files were not included in the published crate. Fixes build error: "CMake Error: The source directory [...]/tools does not contain a CMakeLists.txt file" Resolves issues identified in PR utilityai#806 for MTMD multimodal support. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a6c142a commit 9e8dd23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llama-cpp-sys-2/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ include = [
5555
"/llama.cpp/cmake",
5656
"/llama.cpp/ggml/cmake",
5757
"/llama.cpp/common/cmake",
58+
59+
# Required for MTMD feature (tools build)
60+
"/llama.cpp/tools/CMakeLists.txt",
61+
"/llama.cpp/tools/mtmd/CMakeLists.txt",
5862
]
5963

6064
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

0 commit comments

Comments
 (0)