From 4443e99e353b7ef5a58fc8ea53e041570a301b83 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Tue, 13 Sep 2016 13:09:13 -0700 Subject: [PATCH] check for libintl when NLS is used --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 270b2d3..69d298d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,11 @@ include_directories (${CMAKE_SOURCE_DIR}) # Translations if (ENABLE_NLS) + find_package (Intl) + if (Intl_FOUND) + include_directories (${Intl_INCLUDE_DIRS}) + endif() + add_subdirectory(po) add_definitions(-DENABLE_NLS) @@ -168,6 +173,7 @@ target_link_libraries(encfs ${OPENSSL_LIBRARIES} ${TINYXML_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} + ${Intl_LIBRARIES} ) if (INSTALL_LIBENCFS) install (TARGETS encfs DESTINATION lib)