]> SALOME platform Git repositories - plugins/ghs3dprlplugin.git/commitdiff
Salome HOME
Show error in case when SMESH was built without docs V7_3_BR V7_3_0 V7_3_0_WIN V7_3_0rc1
authorakl <akl@opencascade.com>
Thu, 12 Dec 2013 06:17:05 +0000 (06:17 +0000)
committerakl <akl@opencascade.com>
Thu, 12 Dec 2013 06:17:05 +0000 (06:17 +0000)
 (SALOME_BUILD_DOC=OFF), but PLUGIN is built with docs (SALOME_BUILD_DOC=ON).

CMakeLists.txt

index 3063a835808c85463ea660e288e7f3ea5e99baa2..90f39dd81fb522582d652488e27acf2111bde3eb 100755 (executable)
@@ -144,6 +144,12 @@ IF(EXISTS ${SMESH_ROOT_DIR})
       MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH with GUI, please set SALOME_BUILD_GUI=ON in SMESH module")
     ENDIF(NOT SALOME_SMESH_BUILD_GUI)
   ENDIF(SALOME_BUILD_GUI)
+  IF(SALOME_BUILD_DOC)
+    IF(NOT SALOME_SMESH_BUILD_DOC)
+      MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH documentation to build GHS3DPRLPLUGIN documentation. "
+                         "So, you should either set SALOME_BUILD_DOC=OFF in GHS3DPRLPLUGIN or set SALOME_BUILD_DOC=ON in SMESH module.")
+    ENDIF(NOT SALOME_SMESH_BUILD_DOC)
+  ENDIF(SALOME_BUILD_DOC)
 ELSE(EXISTS ${SMESH_ROOT_DIR})
   MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
 ENDIF(EXISTS ${SMESH_ROOT_DIR})