aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-07-18 23:28:53 +0100
committerJustin M. Keyes <justinkz@gmail.com>2015-09-10 00:48:43 -0400
commit2bc1d7d0db6bdc29976dab03624fcb6d8a90094d (patch)
tree75dbe2ff27c6ee950e8cf4a93e732bb0531ec8be
parent48786f076c08a2b59fa04814c46f3ea3db683fe2 (diff)
downloadrneovim-2bc1d7d0db6bdc29976dab03624fcb6d8a90094d.tar.gz
rneovim-2bc1d7d0db6bdc29976dab03624fcb6d8a90094d.tar.bz2
rneovim-2bc1d7d0db6bdc29976dab03624fcb6d8a90094d.zip
Windows: Only link against libm, libutil on Unix. #3324
-rw-r--r--src/nvim/CMakeLists.txt21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index ad2642ddd4..608783f577 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -223,16 +223,21 @@ endif()
# Put these last on the link line, since multiple things may depend on them.
list(APPEND NVIM_LINK_LIBRARIES
- ${LIBUV_LIBRARIES}
- ${MSGPACK_LIBRARIES}
- ${LUAJIT_LIBRARIES}
- ${LIBVTERM_LIBRARIES}
- ${LIBTERMKEY_LIBRARIES}
- ${UNIBILIUM_LIBRARIES}
+ ${LIBUV_LIBRARIES}
+ ${MSGPACK_LIBRARIES}
+ ${LUAJIT_LIBRARIES}
+ ${LIBVTERM_LIBRARIES}
+ ${LIBTERMKEY_LIBRARIES}
+ ${UNIBILIUM_LIBRARIES}
+ ${CMAKE_THREAD_LIBS_INIT}
+)
+
+if(UNIX)
+ list(APPEND NVIM_LINK_LIBRARIES
m
util
- ${CMAKE_THREAD_LIBS_INIT}
- )
+ )
+endif()
set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES})