aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFredrik Fornwall <fredrik@fornwall.net>2014-07-10 11:42:05 +0200
committerJohn Szakmeister <john@szakmeister.net>2014-07-10 08:53:04 -0400
commite9ca4f002ff03ce9b3353c504de9a27fc23077ce (patch)
tree8a9bdcd220b19c68fd723d127ea8be514857fa3f /src
parent308953ecbf22dd967f8c6647852835286d8548e8 (diff)
downloadrneovim-e9ca4f002ff03ce9b3353c504de9a27fc23077ce.tar.gz
rneovim-e9ca4f002ff03ce9b3353c504de9a27fc23077ce.tar.bz2
rneovim-e9ca4f002ff03ce9b3353c504de9a27fc23077ce.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()