From 82b724af4b996eb226c663cbdebf640331107dc5 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Wed, 26 Feb 2014 16:05:43 +0000 Subject: [PATCH] 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. --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()