From cec14ad8edff57ef729544437dc136365db0ea90 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 21 Feb 2024 16:55:19 +0100 Subject: [PATCH] cmake: LIB_NCURSES also accept pdcurses The Fedora mingw environment comes with pdcurses, which states > Note that ncurses is not available for MinGW / Windows. > Applications which need curses functionality can use this > package, provided they don't use any of the extensions > specific to ncurses. This at least allows the cross compile build to succeed, I have not tested the executable under Windows or Wine. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff960862..0adf1b36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,7 +220,7 @@ endif() find_library(HAVE_LIBREADLINE NAMES ${PREFERRED_LIBREADLINE}) if(HAVE_LIBREADLINE) set(LIB_LIBREADLINE ${HAVE_LIBREADLINE}) - find_library(LIB_NCURSES NAMES ncurses) + find_library(LIB_NCURSES NAMES ncurses pdcurses) elseif(MSVC) set(HAVE_LIBREADLINE 1) endif()