mirror of
https://github.com/neovim/neovim.git
synced 2026-04-26 17:24:18 +00:00
Use libtinfo as a fallback for curses
This will be done before running the FindCurses cmake module
This commit is contained in:
@@ -71,8 +71,13 @@ check_library_exists(curses tgetent "" HAVE_LIBCURSES)
|
||||
if (HAVE_LIBCURSES)
|
||||
list(APPEND NVIM_LINK_LIBRARIES curses)
|
||||
else()
|
||||
find_package(Curses REQUIRED)
|
||||
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARIES})
|
||||
check_library_exists(tinfo tgetent "" HAVE_LIBTINFO)
|
||||
if (HAVE_LIBTINFO)
|
||||
list(APPEND NVIM_LINK_LIBRARIES tinfo)
|
||||
else()
|
||||
find_package(Curses REQUIRED)
|
||||
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Put these last on the link line, since multiple things may depend on them.
|
||||
|
||||
Reference in New Issue
Block a user