Windows: Only link against libm, libutil on Unix. #3324

This commit is contained in:
Rui Abreu Ferreira 2014-07-18 23:28:53 +01:00 committed by Justin M. Keyes
parent 48786f076c
commit 2bc1d7d0db

View File

@ -223,16 +223,21 @@ endif()
# Put these last on the link line, since multiple things may depend on them. # Put these last on the link line, since multiple things may depend on them.
list(APPEND NVIM_LINK_LIBRARIES list(APPEND NVIM_LINK_LIBRARIES
${LIBUV_LIBRARIES} ${LIBUV_LIBRARIES}
${MSGPACK_LIBRARIES} ${MSGPACK_LIBRARIES}
${LUAJIT_LIBRARIES} ${LUAJIT_LIBRARIES}
${LIBVTERM_LIBRARIES} ${LIBVTERM_LIBRARIES}
${LIBTERMKEY_LIBRARIES} ${LIBTERMKEY_LIBRARIES}
${UNIBILIUM_LIBRARIES} ${UNIBILIUM_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
if(UNIX)
list(APPEND NVIM_LINK_LIBRARIES
m m
util util
${CMAKE_THREAD_LIBS_INIT} )
) endif()
set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES}) set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES})