aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-02-28 05:01:31 -0500
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-28 08:16:57 -0300
commitfe226f5376a674626267f1128e7b1844c5b870a1 (patch)
treee2d3cc54639ab27f97515aea7845aec448b55d72
parentd2e567a8354573ec96c71eb490e7c991f55ac397 (diff)
downloadrneovim-fe226f5376a674626267f1128e7b1844c5b870a1.tar.gz
rneovim-fe226f5376a674626267f1128e7b1844c5b870a1.tar.bz2
rneovim-fe226f5376a674626267f1128e7b1844c5b870a1.zip
Only include libintl's include dir if libintl was found.
This prevents an error from CMake when libintl is not found. It's not a required library, so we must wrap the inclusion in a conditional. It was already done for the library.
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b732a5b07c..c2916eb321 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,9 @@ endif(NOT CMAKE_USE_PTHREADS_INIT)
check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
find_package(LibIntl)
-include_directories(${LibIntl_INCLUDE_DIR})
+if(LibIntl_FOUND)
+ include_directories(${LibIntl_INCLUDE_DIR})
+endif()
# Require libuv
find_package(LibUV REQUIRED)