From 62aeabdc851f7b264721df2dea5527b9aec5788c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paal=20=C3=98ye-Str=C3=B8mme?= Date: Wed, 25 Mar 2026 19:11:33 +0100 Subject: [PATCH] build: make sure CMake can clean up after libghostty-vt --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c596dad00..6a6cd216a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,11 @@ add_custom_target(zig_build_lib_vt ALL DEPENDS "${GHOSTTY_VT_SHARED_LIBRARY}" "${GHOSTTY_VT_STATIC_LIBRARY}" ) +# Tell CMake's clean target to also remove Zig's output directory. +set_property(DIRECTORY APPEND PROPERTY + ADDITIONAL_CLEAN_FILES "${ZIG_OUT_DIR}" +) + # --- IMPORTED library targets ------------------------------------------------ # Shared