From 1a183463639ede596040c6c6d67afc7f982e971b Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 6 Jan 2010 10:44:01 +0100
Subject: [PATCH] ENH: add an option to allow GETTEXT lib search

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 470e9e9443..e7d4ddb825 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -614,6 +614,9 @@ ELSE(OTB_USE_EXTERNAL_GDAL)
 ENDIF(OTB_USE_EXTERNAL_GDAL)
 
 #Experimental
+OPTION(OTB_USE_GETTEXT "Get Text Library." ON)
+
+IF(OTB_USE_GETTEXT)
 FIND_PACKAGE(Gettext)
 IF(GETTEXT_FOUND)
   FIND_LIBRARY(GETTEXT_LIBRARY gettextlib DOC "GetText library")
@@ -641,6 +644,7 @@ ELSE(GETTEXT_FOUND)
   MESSAGE(STATUS
               "Gettext not found, internationalization will not be available")
 ENDIF(GETTEXT_FOUND)
+ENDIF(OTB_USE_GETTEXT)
 
 #-------------------------------
 # End connections whith external libraries
-- 
GitLab