Avoid linking with libform(w).so

If libtgent or libcurses is installed, the first one found of them
is linked to.

But if not, a find_package(Curses REQUIRED) is used and CURSES_LIBRARIES
is added to NVIM_LINK_LIBRARIES. This contains libform(w).so on many
systems, causing nvim to be linked to and depend on libform(w).so,
which may not be installed one some space-constrained systems, unnecessarily.
This commit is contained in:
Fredrik Fornwall 2014-07-10 11:42:05 +02:00 committed by John Szakmeister
parent 308953ecbf
commit e9ca4f002f

View File

@ -146,7 +146,7 @@ else()
list(APPEND NVIM_LINK_LIBRARIES tinfo)
else()
find_package(Curses REQUIRED)
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARIES})
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARY})
endif()
endif()