diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-22 21:43:49 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-22 21:55:59 -0300 |
commit | a57030d28cf8e6f3e792ebfdc9d52e1c1ac17562 (patch) | |
tree | 34deaf5541b2c3809f696a67cdf7932a9158324f | |
parent | a1a0c00589a8efc664db82be6743136bb462e08f (diff) | |
download | rneovim-a57030d28cf8e6f3e792ebfdc9d52e1c1ac17562.tar.gz rneovim-a57030d28cf8e6f3e792ebfdc9d52e1c1ac17562.tar.bz2 rneovim-a57030d28cf8e6f3e792ebfdc9d52e1c1ac17562.zip |
Use libtinfo as a fallback for curses
This will be done before running the FindCurses cmake module
-rw-r--r-- | src/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a49c84ba42..7f6649d15e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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. |