diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84ec4c460dd91620a6d234354796fa8442c5b8b8..64f4f6df42d5fc8c9c7fe023316bbc6b44283fcf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,6 @@ SET(OTB_VERSION_PATCH "0")
 # enough to distinguish available features of the toolkit.
 SET(OTB_VERSION_STRING "${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}")
 
-
 #-----------------------------------------------------------------------------
 # RECHERCHE DES LIBRAIRIES EXTERNES UTILISEES
 
@@ -174,6 +173,10 @@ INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityC.cmake)
 INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
 
 
+#-----------------------------------------------------------------------------
+# Repertoire des images de télédetection.
+SET( OTB_DATA_DIR "$ENV{OTB_DATA_DIR}" CACHE STRING "Image directory")
+
 #-----------------------------------------------------------------------------
 # Configure Dart testing support.  This should be done before any
 # MESSAGE(FATAL_ERROR ...) commands are invoked.