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 )
@@ -210,6 +213,10 @@ if (LLAMA_BUILD_COMMON AND LLAMA_BUILD_TOOLS)
210213 add_subdirectory (tools)
211214endif ()
212215
216+ if (LLAMA_MTMD)
217+ add_subdirectory (tools/mtmd)
218+ endif ()
219+
213220#
214221# install
215222#
@@ -245,7 +252,7 @@ if (LLAMA_BUILD_COMMON)
245252
246253endif ()
247254
248- if (LLAMA_BUILD_TOOLS )
255+ if (LLAMA_MTMD )
249256
250257 install (
251258 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