From: akl Date: Thu, 12 Dec 2013 06:17:05 +0000 (+0000) Subject: Show error in case when SMESH was built without docs X-Git-Tag: V7_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f5a0a8bdddda6534c8fb5a87bc7939cde9f34241;p=plugins%2Fghs3dprlplugin.git Show error in case when SMESH was built without docs (SALOME_BUILD_DOC=OFF), but PLUGIN is built with docs (SALOME_BUILD_DOC=ON). --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3063a83..90f39dd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})