From: Renaud Barate Date: Thu, 11 Jul 2013 14:37:23 +0000 (+0200) Subject: Fix doc generation with new Sphinx detection X-Git-Tag: V7_3_0~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e594f80f227444a4ea9502240a4e5fba7627782e;p=modules%2Fparametric.git Fix doc generation with new Sphinx detection --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ab174f..3109a10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,9 +38,11 @@ FIND_PACKAGE(SalomeKERNEL REQUIRED) FIND_PACKAGE(SalomePython) FIND_PACKAGE(SalomeOmniORB) FIND_PACKAGE(SalomeOmniORBPy) -FIND_PACKAGE(SalomeSphinx) FIND_PACKAGE(SalomeSIP) FIND_PACKAGE(SalomePyQt4) +IF(SALOME_BUILD_DOC) + FIND_PACKAGE(SalomeSphinx REQUIRED) +ENDIF() SET(BINDIR bin/salome) SET(RESDIR share/salome/resources/parametric) @@ -50,9 +52,7 @@ SET(DOCDIR share/doc/salome/gui/PARAMETRIC) ADD_SUBDIRECTORY(idl) ADD_SUBDIRECTORY(src) -IF(SPHINX_IS_OK) +IF(SALOME_BUILD_DOC) ADD_SUBDIRECTORY(doc) -ELSE(SPHINX_IS_OK) - MESSAGE(STATUS "Sphinx not found, doc will not be built") -ENDIF(SPHINX_IS_OK) +ENDIF(SALOME_BUILD_DOC) ADD_SUBDIRECTORY(resources)