make use of libuv when found by CMake

This commit is contained in:
Rich Wareham 2014-02-24 20:59:03 +00:00 committed by Thiago de Arruda
parent 598f9fba86
commit 2a6780431e
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ endif(NOT CMAKE_USE_PTHREADS_INIT)
# Require libuv
find_package(LibUV REQUIRED)
include_directories(${LibUV_INCLUDE_DIRS})
# add dependencies to include/lib directories
link_directories ("${PROJECT_SOURCE_DIR}/.deps/usr/lib")

View File

@ -14,7 +14,7 @@ file( GLOB OS_SOURCES os/*.c )
add_executable (nvim ${NEOVIM_SOURCES} ${OS_SOURCES})
target_link_libraries (nvim m uv ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (vim m ${LibUV_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
include(CheckLibraryExists)
check_library_exists(termcap tgetent "" HAVE_LIBTERMCAP)