# 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)
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)