diff options
author | Rich Wareham <rjw57@cam.ac.uk> | 2014-02-24 20:59:03 +0000 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-02-26 07:09:11 -0300 |
commit | 2a6780431e7a8a4ecf41e44d72d8bac639df7ee3 (patch) | |
tree | c9b88a71e909ec24d0910e4cc5f89aaf73cc9d0e | |
parent | 598f9fba861beb7a208e03c3ba71e57deb31a43d (diff) | |
download | rneovim-2a6780431e7a8a4ecf41e44d72d8bac639df7ee3.tar.gz rneovim-2a6780431e7a8a4ecf41e44d72d8bac639df7ee3.tar.bz2 rneovim-2a6780431e7a8a4ecf41e44d72d8bac639df7ee3.zip |
make use of libuv when found by CMake
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 deletions
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) |