From 484420e663eef07e2a40c9cb0ea6d1e3cdffe943 Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 12 Dec 2013 06:17:46 +0000 Subject: [PATCH] Show error in case when SMESH was built without docs (SALOME_BUILD_DOC=OFF), but PLUGIN is built with docs (SALOME_BUILD_DOC=ON). --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83ecf35..631eee4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) -- 2.39.2