Merge pull request #184 from equalsraf/tb-curses

Use FindCurses.cmake as fallback to find curses libraries
This commit is contained in:
Rich Wareham 2014-02-27 10:27:49 +00:00
commit 97e635e8b6

View File

@ -35,7 +35,8 @@ else()
if (HAVE_LIBCURSES) if (HAVE_LIBCURSES)
target_link_libraries(nvim curses) target_link_libraries(nvim curses)
else() else()
message(FATAL_ERROR "can't find something resembling -ltermcap") find_package(Curses REQUIRED)
target_link_libraries(nvim ${CURSES_LIBRARIES})
endif() endif()
endif() endif()