mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Use FindCurses to find curses libraries
- Some systems have the FindCurses.cmake module to find the curses/ncurses libraries using find_package(). And in some CheckLibraries is not very reliable, so as fallback FindCurses is now used if no other option works.
This commit is contained in:
parent
2c02f00b7c
commit
82b724af4b
@ -35,7 +35,8 @@ else()
|
||||
if (HAVE_LIBCURSES)
|
||||
target_link_libraries(nvim curses)
|
||||
else()
|
||||
message(FATAL_ERROR "can't find something resembling -ltermcap")
|
||||
find_package(Curses REQUIRED)
|
||||
target_link_libraries(nvim ${CURSES_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user