From c159fde7ee62c862f7ef958c6249b1302c1c81c3 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Sun, 6 Dec 2009 21:26:04 +0800 Subject: [PATCH] COMP: search the libintl.h when using gettext --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e802dba53..a4f8544677 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -620,6 +620,11 @@ IF(GETTEXT_FOUND) SET(OTB_LANG $ENV{LANG} CACHE STRING "OTB internationalization (Experimental)")#might want to get the Locale from the system here SET(OTB_LANG_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/I18n) SUBDIRS(I18n) + FIND_PATH(GETTEXT_INCLUDE_DIR + libintl.h + DOC "Path to gettext include directory (where libintl.h can be found)") + MARK_AS_ADVANCED(GETTEXT_INCLUDE_DIR) + INCLUDE_DIRECTORIES(${GETTEXT_INCLUDE_DIR}) ELSE(GETTEXT_FOUND) SET(OTB_I18N 0) MESSAGE(STATUS -- GitLab