aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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})