diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2014-02-26 16:05:43 +0000 |
---|---|---|
committer | Rui Abreu Ferreira <raf-ep@gmx.com> | 2014-02-27 09:23:15 +0000 |
commit | 82b724af4b996eb226c663cbdebf640331107dc5 (patch) | |
tree | e8c2d638e715001148901930a4f7556b468d6846 | |
parent | 2c02f00b7c439b4df7388606f778f6de47d7964d (diff) | |
download | rneovim-82b724af4b996eb226c663cbdebf640331107dc5.tar.gz rneovim-82b724af4b996eb226c663cbdebf640331107dc5.tar.bz2 rneovim-82b724af4b996eb226c663cbdebf640331107dc5.zip |
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.
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a7e815fd7c..6918aee61a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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() |