From ef650c0c4dc386399253377d7492c9b499e23dbc Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Thu, 25 Mar 2010 09:44:24 +0800 Subject: [PATCH] COMP: don't leave the OTB_LANG variable empty, fall back on english --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb456857f0..97be0613dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -628,7 +628,12 @@ IF(GETTEXT_FOUND) IF(GETTEXT_LIBRARY) SET(OTB_I18N 1) + MESSAGE(STATUS + "Gettext found, configuring internationalization") SET(OTB_LANG $ENV{LANG} CACHE STRING "OTB internationalization (Experimental)")#might want to get the Locale from the system here + IF(NOT OTB_LANG) + SET(OTB_LANG "en_EN.UTF-8" CACHE STRING "OTB internationalization (Experimental)") + ENDIF(NOT OTB_LANG) SET(OTB_LANG_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/I18n) ADD_SUBDIRECTORY(I18n) FIND_PATH(GETTEXT_INCLUDE_DIR -- GitLab