diff options
author | John Szakmeister <john@szakmeister.net> | 2014-02-28 05:01:31 -0500 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-02-28 08:16:57 -0300 |
commit | fe226f5376a674626267f1128e7b1844c5b870a1 (patch) | |
tree | e2d3cc54639ab27f97515aea7845aec448b55d72 | |
parent | d2e567a8354573ec96c71eb490e7c991f55ac397 (diff) | |
download | rneovim-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.txt | 4 |
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) |