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

CMakeLists.txt

index 83ecf3576e58c895fea9264ad2a18f4c5ec86e80..631eee47914df23e95770a14a17c70e74334e6cb 100755 (executable)
@@ -140,6 +140,12 @@ IF(EXISTS ${SMESH_ROOT_DIR})
   FIND_PACKAGE(SalomeSMESH REQUIRED)
   ADD_DEFINITIONS(${SMESH_DEFINITIONS})
   INCLUDE_DIRECTORIES(${SMESH_INCLUDE_DIRS})
+  IF(SALOME_BUILD_DOC)
+    IF(NOT SALOME_SMESH_BUILD_DOC)
+      MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH documentation to build HexoticPLUGIN documentation. "
+                         "So, you should either set SALOME_BUILD_DOC=OFF in HexoticPLUGIN 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})