From c2ccc0afdbdc5d65bc00b045503f0d0eb774e761 Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Mon, 19 Feb 2007 14:35:11 +0000
Subject: [PATCH] Mise a jour de la variable OTB_USE_VISU par OTB_USE_VISU_GUI.

---
 CMakeLists.txt              | 8 ++++----
 Code/CMakeLists.txt         | 4 ++--
 Testing/Code/CMakeLists.txt | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98c16af1f6..8700272124 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,9 +96,9 @@ LINK_DIRECTORIES( ${GDAL_LIBRARY_DIRS} )
 
 #-----------------------------------------------------------------------------
 # Option for generate Visu tools !!!
-OPTION(OTB_USE_VISU "Generate Visu tools directory. If ON, find OpenGL and FLTK package." ON)
-MARK_AS_ADVANCED(OTB_USE_VISU)
-IF(OTB_USE_VISU)
+OPTION(OTB_USE_VISU_GUI "Generate Gui/Visu tools directory. If ON, find OpenGL and FLTK package." ON)
+MARK_AS_ADVANCED(OTB_USE_VISU_GUI)
+IF(OTB_USE_VISU_GUI)
 
         #-------------------------------
         # Librairie OpenGL
@@ -122,7 +122,7 @@ IF(OTB_USE_VISU)
 	         "Cannot build OTB project without FLTK.  Please set FLTK_DIR or set OTB_USE_VISU to OFF.")
         ENDIF(FLTK_FOUND)
 
-ENDIF(OTB_USE_VISU)
+ENDIF(OTB_USE_VISU_GUI)
 
 
 
diff --git a/Code/CMakeLists.txt b/Code/CMakeLists.txt
index 126e67ec57..cd1ea5e991 100644
--- a/Code/CMakeLists.txt
+++ b/Code/CMakeLists.txt
@@ -1,5 +1,5 @@
 SUBDIRS(Common BasicFilters IO ChangeDetection FeatureExtraction Learning MultiScale DisparityMap SpatialReasoning) 
 
-IF(OTB_USE_VISU)
+IF(OTB_USE_VISU_GUI)
         SUBDIRS(Visu Gui)
-ENDIF(OTB_USE_VISU)
+ENDIF(OTB_USE_VISU_GUI)
diff --git a/Testing/Code/CMakeLists.txt b/Testing/Code/CMakeLists.txt
index 2d126a7f5c..a41e996e38 100644
--- a/Testing/Code/CMakeLists.txt
+++ b/Testing/Code/CMakeLists.txt
@@ -2,6 +2,6 @@
 
 SUBDIRS(Common IO BasicFilters FeatureExtraction ChangeDetection Learning MultiScale DisparityMap SpatialReasoning)
 
-IF(OTB_USE_VISU)
+IF(OTB_USE_VISU_GUI)
         SUBDIRS(Visu Gui)
-ENDIF(OTB_USE_VISU)
+ENDIF(OTB_USE_VISU_GUI)
-- 
GitLab