From 8b094595b1b6ec64f5e4a3d87ced60ca504a3139 Mon Sep 17 00:00:00 2001 From: DanS Date: Sun, 11 Oct 2026 06:05:07 -0500 Subject: [PATCH] build(cmake): exclude HushChatFixtureCheck from the default build HushChatFixtureCheck is a dev-only CLI for the HushChat fixture files. Nothing runs it (no ctest entry, not linked into the app or the tests), yet every dev and test build compiled and linked it. It is now EXCLUDE_FROM_ALL, with a usage note next to the target: cmake --build build/linux --target HushChatFixtureCheck A dry run of `all` no longer mentions it (4 lines before) while ObsidianDragonTests stays in `all`, and building the target explicitly still produces a working binary (`--help` exits 0). The fixture template and the chat sources are unchanged. Co-Authored-By: Claude Opus 5.5 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89b7a85..5687d50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -939,7 +939,9 @@ if(DRAGONX_FREETYPE) target_compile_definitions(ObsidianDragon PRIVATE DRAGONX_HAVE_FREETYPE) endif() -add_executable(HushChatFixtureCheck +# Dev-only HushChat fixture CLI (nothing runs it; not linked into the app or tests). Not part of `all`: +# cmake --build build/linux --target HushChatFixtureCheck (output: build/linux/bin/HushChatFixtureCheck) +add_executable(HushChatFixtureCheck EXCLUDE_FROM_ALL tools/hushchat_fixture_check.cpp src/chat/chat_protocol.cpp src/chat/chat_fixture_tooling.cpp