Salome HOME
Replace use of FULL_GUI by SALOME_GUI_MODE
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 30 Jul 2014 16:21:53 +0000 (18:21 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 30 Jul 2014 16:24:51 +0000 (18:24 +0200)
YACS does not need to have GUI compiled with all the viewers: only the
QxGraphViewer is needed.

CMakeLists.txt

index 62e4672b7d7c9708bacdb54eb4d49fcc5a4aecba..e2159fed769c291c1ccc69a55c8b57e18fc5d04d 100644 (file)
@@ -67,7 +67,8 @@ IF(SALOME_BUILD_GUI)
   IF(EXISTS ${GUI_ROOT_DIR})
     LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
     FIND_PACKAGE(SalomeGUI)
-    FULL_GUI(TRUE) # check whether GUI builded in full mode and with CORBA
+    SALOME_GUI_WITH_CORBA() # check whether GUI builded with CORBA
+    SALOME_GUI_MODE(SALOME_USE_QXGRAPHVIEWER) # check whether GUI is built with the QxGraphViewer
   ELSE(EXISTS ${GUI_ROOT_DIR})
     MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR or turn option SALOME_BUILD_GUI to OFF !")
   ENDIF(EXISTS ${GUI_ROOT_DIR})