]> SALOME platform Git repositories - modules/parametric.git/commitdiff
Salome HOME
Fix doc generation with new Sphinx detection
authorRenaud Barate <renaud.barate@edf.fr>
Thu, 11 Jul 2013 14:37:23 +0000 (16:37 +0200)
committerRenaud Barate <renaud.barate@edf.fr>
Thu, 11 Jul 2013 14:37:23 +0000 (16:37 +0200)
CMakeLists.txt

index 5ab174f441f839c593a24aa5b4b2c2172ddc15af..3109a107f6a3be14377a9510b4c279dd8c57c18c 100644 (file)
@@ -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)