aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2014-02-26 13:55:43 +0100
committerashleyh <gh@ashleyh.eu>2014-02-27 19:11:48 +0000
commit05b9e11584c30c03cb911bf909374c86450ee13e (patch)
treeb6ed38e24df01346535aeeac552ce14b6db6eec9 /src
parentfba074d99440f58d534d18ff8adbd6ca8c7be675 (diff)
downloadrneovim-05b9e11584c30c03cb911bf909374c86450ee13e.tar.gz
rneovim-05b9e11584c30c03cb911bf909374c86450ee13e.tar.bz2
rneovim-05b9e11584c30c03cb911bf909374c86450ee13e.zip
CMakeLists: Improve handling of libintl
by refactoring it into a separate CMake module
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 713114bbab..8c19098f1e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,6 +23,10 @@ if(HAVE_CLOCK_GETTIME)
list(APPEND NVIM_LINK_LIBRARIES rt)
endif(HAVE_CLOCK_GETTIME)
+if (LibIntl_FOUND)
+ list(APPEND NVIM_LINK_LIBRARIES ${LibIntl_LIBRARY})
+endif()
+
target_link_libraries (nvim ${NVIM_LINK_LIBRARIES})
include(CheckLibraryExists)
@@ -40,10 +44,6 @@ else()
endif()
endif()
-if (HAVE_LIBINTL AND LIBINTL_LIB)
- target_link_libraries(nvim ${LIBINTL_LIB})
-endif()
-
include_directories ("${PROJECT_SOURCE_DIR}/src/proto")
install(TARGETS nvim RUNTIME DESTINATION bin)