From e9ca4f002ff03ce9b3353c504de9a27fc23077ce Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 10 Jul 2014 11:42:05 +0200 Subject: 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. --- src/nvim/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index dd5989f96f..0aa9415292 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -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() -- cgit