mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
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:

committed by
John Szakmeister

parent
308953ecbf
commit
e9ca4f002f
@@ -146,7 +146,7 @@ else()
|
|||||||
list(APPEND NVIM_LINK_LIBRARIES tinfo)
|
list(APPEND NVIM_LINK_LIBRARIES tinfo)
|
||||||
else()
|
else()
|
||||||
find_package(Curses REQUIRED)
|
find_package(Curses REQUIRED)
|
||||||
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARIES})
|
list(APPEND NVIM_LINK_LIBRARIES ${CURSES_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user