From 7c4ab9b6d2b656000e6b32ff9d5f9dc61c5e7e90 Mon Sep 17 00:00:00 2001 From: CLARATION Date: Mon, 6 Jul 2026 04:27:14 -0700 Subject: [PATCH] fix(build): enable-overwrite for static ncurses --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd335a8..11bbaef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,9 +27,13 @@ if(LINUX AND WITH_STATIC) endif() if(MINGW AND NOT WITH_STATIC) - message(FATAL_ERROR "MinGW builds must be static. Please configure with -DWITH_STATIC=ON") + message(FATAL_ERROR "MinGW builds must be static. Please configure with -DWITH_STATIC=1") endif() +if(MINGW AND WITH_TUI) + message(FATAL_ERROR "-DWITH_TUI=1 is not supported on MinGW builds.") +endif()s + # ========================= # SETUP # ========================= @@ -290,7 +294,7 @@ if(WITH_STATIC) URL https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.4.tar.gz CONFIGURE_COMMAND ${PKG_ENV} - sh -l /configure --prefix=${DEPS_PREFIX} ${IMD_AUTOTOOLS_ARGS} --disable-stripping + sh -l /configure --prefix=${DEPS_PREFIX} ${IMD_AUTOTOOLS_ARGS} --disable-stripping --enable-overwrite BUILD_COMMAND make -j BUILD_IN_SOURCE 1 INSTALL_COMMAND make install