From a7f3d874435cb8470f5c0c8fee49b03295861d75 Mon Sep 17 00:00:00 2001 From: AI Patch Builder Date: Fri, 5 Jun 2026 15:16:51 +0000 Subject: [PATCH] Report curses detection in CMake configure --- CMakeLists.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c1b8dd..60ee7a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,31 @@ find_package(Threads REQUIRED) find_library(NWFLAIM_RT_LIBRARY rt) find_library(NWFLAIM_DL_LIBRARY dl) find_package(Curses QUIET) +if(CURSES_FOUND) + set(_nwflaim_curses_include_dirs "") + if(CURSES_INCLUDE_DIRS) + set(_nwflaim_curses_include_dirs "${CURSES_INCLUDE_DIRS}") + elseif(CURSES_INCLUDE_DIR) + set(_nwflaim_curses_include_dirs "${CURSES_INCLUDE_DIR}") + endif() + + message(STATUS "NWFLAIM: curses/ncurses found") + if(_nwflaim_curses_include_dirs) + message(STATUS "NWFLAIM: curses include dirs: ${_nwflaim_curses_include_dirs}") + else() + message(STATUS "NWFLAIM: curses include dirs: ") + endif() + if(CURSES_LIBRARIES) + message(STATUS "NWFLAIM: curses libraries: ${CURSES_LIBRARIES}") + else() + message(STATUS "NWFLAIM: curses libraries: ") + endif() + if(NWFLAIM_BUILD_TOOLS) + message(STATUS "NWFLAIM: tools enabled; curses-backed tools will be built") + endif() +else() + message(STATUS "NWFLAIM: curses/ncurses not found") +endif() if(NWFLAIM_BUILD_TOOLS AND NOT CURSES_FOUND) message(FATAL_ERROR "NWFLAIM_BUILD_TOOLS requires curses/ncurses") endif()