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 @@ -81,6 +81,9 @@ option(LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE})
8181option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
8282option (LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE} )
8383
84+ # specific extras
85+ option (LLAMA_MTMD "llama: multimodal support" OFF )
86+
8487# 3rd party libs
8588option (LLAMA_CURL "llama: use libcurl to download model from an URL" ON )
8689option (LLAMA_LLGUIDANCE "llama-common: include LLGuidance library for structured output in common utils" OFF )
@@ -206,6 +209,10 @@ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS)
206209 add_subdirectory (tools)
207210endif ()
208211
212+ if (LLAMA_MTMD)
213+ add_subdirectory (tools/mtmd)
214+ endif ()
215+
209216#
210217# install
211218#
@@ -241,7 +248,7 @@ if (LLAMA_BUILD_COMMON)
241248
242249endif ()
243250
244- if (LLAMA_BUILD_TOOLS )
251+ if (LLAMA_MTMD )
245252
246253 install (
247254 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)
@@ -61,3 +62,4 @@ set_target_properties (${TARGET} PROPERTIES OUTPUT_NAME llama-mtmd-cli)
6162install (TARGETS ${TARGET} RUNTIME)
6263target_link_libraries (${TARGET} PRIVATE common mtmd Threads::Threads)
6364target_compile_features (${TARGET} PRIVATE cxx_std_17)
65+ endif ()
You can’t perform that action at this time.
0 commit comments