]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Detection of the OpenCV is OFF by default.
authorrnv <rnv@opencascade.com>
Tue, 17 Sep 2013 12:19:05 +0000 (12:19 +0000)
committerrnv <rnv@opencascade.com>
Tue, 17 Sep 2013 12:19:05 +0000 (12:19 +0000)
CMakeLists.txt

index 2d85837a5d6e59525d1b2f056b86f63132fe2b7a..65c4e68ff9f6458d85c6051e6331d484e9233ee1 100755 (executable)
@@ -65,7 +65,7 @@ OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS})
 
 # Advanced options:
 OPTION(SALOME_BUILD_GUI       "Enable GUI" ON)
-OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" ON)
+OPTION(SALOME_GEOM_USE_OPENCV "Enable shape recognition from picture" OFF)
 
 MARK_AS_ADVANCED(SALOME_BUILD_GUI SALOME_GEOM_USE_OPENCV)
 
@@ -148,8 +148,10 @@ FIND_PACKAGE(SalomeCAS REQUIRED)
 
 IF(SALOME_BUILD_GUI)
   # OpenCV
-  FIND_PACKAGE(SalomeOpenCV)
-  SALOME_LOG_OPTIONAL_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
+  IF(SALOME_GEOM_USE_OPENCV)
+    FIND_PACKAGE(SalomeOpenCV)
+    SALOME_LOG_OPTIONAL_PACKAGE(OpenCV SALOME_GEOM_USE_OPENCV)
+  ENDIF(SALOME_GEOM_USE_OPENCV)
 ELSE()
   SET(SALOME_GEOM_USE_OPENCV OFF)
 ENDIF(SALOME_BUILD_GUI)