Merge pull request #1856 from ndim/accept-pdcurses-as-ncurses

cmake: LIB_NCURSES also accept pdcurses
This commit is contained in:
Stefan Rueger
2024-08-03 16:21:31 +01:00
committed by GitHub

View File

@@ -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()