File tree Expand file tree Collapse file tree 5 files changed +19
-0
lines changed
Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ if (TARGET BUILD_INFO)
5353 add_dependencies (mtmd-helper BUILD_INFO)
5454endif ()
5555
56+ # if mtmd is linked against common, we throw an error
57+ if (TARGET mtmd)
58+ get_target_property (libs mtmd LINK_LIBRARIES )
59+ if (libs AND "common" IN_LIST libs)
60+ message (FATAL_ERROR "mtmd is designed to be a public library.\n "
61+ "It must not link against common" )
62+ endif ()
63+ endif ()
64+
5665add_executable (llama-llava-cli deprecation-warning.cpp)
5766add_executable (llama-gemma3-cli deprecation-warning.cpp)
5867add_executable (llama-minicpmv-cli deprecation-warning.cpp)
Original file line number Diff line number Diff line change 1313
1414// Internal header for clip.cpp
1515
16+ #define MTMD_INTERNAL_HEADER
17+
1618#define KEY_FTYPE " general.file_type"
1719#define KEY_NAME " general.name"
1820#define KEY_DESCRIPTION " general.description"
Original file line number Diff line number Diff line change 77
88// !!! Internal header, to be used by mtmd only !!!
99
10+ #define MTMD_INTERNAL_HEADER
11+
1012struct clip_ctx ;
1113
1214struct clip_image_size {
Original file line number Diff line number Diff line change 66#include < vector>
77#include < string>
88
9+ #define MTMD_INTERNAL_HEADER
10+
911#define WHISPER_ASSERT GGML_ASSERT
1012
1113#define WHISPER_SAMPLE_RATE 16000
Original file line number Diff line number Diff line change 3232#define STB_IMAGE_IMPLEMENTATION
3333#include " stb/stb_image.h"
3434
35+ #ifdef MTMD_INTERNAL_HEADER
36+ #error "mtmd-helper is a public library outside of mtmd. it must not include internal headers"
37+ #endif
38+
3539//
3640// internal logging functions
3741//
You can’t perform that action at this time.
0 commit comments