From 18f042f21b69020b2a1a0e026fc2f87caf55908a Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 31 Aug 2026 10:10:32 +0200 Subject: [PATCH] mtmd : use PCH for models.h --- tools/mtmd/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/mtmd/CMakeLists.txt b/tools/mtmd/CMakeLists.txt index e60c9c8787..db5b7c29f3 100644 --- a/tools/mtmd/CMakeLists.txt +++ b/tools/mtmd/CMakeLists.txt @@ -83,6 +83,13 @@ target_link_libraries (mtmd PUBLIC ggml llama) target_link_libraries (mtmd PRIVATE Threads::Threads vendor::hash vendor::miniaudio vendor::stb vendor::sheredom) target_include_directories(mtmd PUBLIC .) target_compile_features (mtmd PRIVATE cxx_std_17) +target_precompile_headers (mtmd PRIVATE models/models.h) + +set_source_files_properties( + mtmd-helper.cpp + mtmd-helper-gen.cpp + PROPERTIES SKIP_PRECOMPILE_HEADERS ON +) if (MTMD_VIDEO) target_compile_definitions(mtmd PRIVATE MTMD_VIDEO)