File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ option(LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE})
8383option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
8484option (LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE} )
8585
86+ # specific extras
87+ option (LLAMA_MTMD "llama: multimodal support" OFF )
88+
8689# 3rd party libs
8790option (LLAMA_CURL "llama: use libcurl to download model from an URL" ON )
8891option (LLAMA_LLGUIDANCE "llama-common: include LLGuidance library for structured output in common utils" OFF )
@@ -212,6 +215,10 @@ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS)
212215 add_subdirectory (tools)
213216endif ()
214217
218+ if (LLAMA_MTMD)
219+ add_subdirectory (tools/mtmd)
220+ endif ()
221+
215222#
216223# install
217224#
@@ -247,7 +254,7 @@ if (LLAMA_BUILD_COMMON)
247254
248255endif ()
249256
250- if (LLAMA_BUILD_TOOLS )
257+ if (LLAMA_MTMD )
251258
252259 install (
253260 TARGETS mtmd
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ if (TARGET BUILD_INFO)
5050 add_dependencies (mtmd-helper BUILD_INFO)
5151endif ()
5252
53+ if (LLAMA_BUILD_TOOLS)
5354add_executable (llama-llava-cli deprecation-warning.cpp)
5455add_executable (llama-gemma3-cli deprecation-warning.cpp)
5556add_executable (llama-minicpmv-cli deprecation-warning.cpp)
@@ -63,3 +64,4 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
6364endif ()
6465target_link_libraries (${TARGET} PRIVATE common mtmd Threads::Threads)
6566target_compile_features (${TARGET} PRIVATE cxx_std_17)
67+ endif ()
You can’t perform that action at this time.
0 commit comments