From 2a6780431e7a8a4ecf41e44d72d8bac639df7ee3 Mon Sep 17 00:00:00 2001 From: Rich Wareham Date: Mon, 24 Feb 2014 20:59:03 +0000 Subject: [PATCH] make use of libuv when found by CMake --- CMakeLists.txt | 1 + src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abc80bf66b..0f8f41f7a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dfd0764a94..96c0b01f3d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)