[opengm] 21/50: Make sphinx a requirement for building the Python docs

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Nov 1 17:14:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository opengm.

commit 33b95a7f6cba6f4ca8fe0c987dc70c98f6a93e4d
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Oct 22 14:11:50 2015 +0100

    Make sphinx a requirement for building the Python docs
---
 src/interfaces/python/CMakeLists.txt | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/interfaces/python/CMakeLists.txt b/src/interfaces/python/CMakeLists.txt
index 0e329a7..c2962ec 100644
--- a/src/interfaces/python/CMakeLists.txt
+++ b/src/interfaces/python/CMakeLists.txt
@@ -19,10 +19,8 @@ message(STATUS ${OPENGM_PYTHON_BUILD_MODULE_DIR})
 set( BUILD_PYTHON_DOCS 0 CACHE BOOL "Build the Python documentation with Sphinx" )
 
 if(BUILD_PYTHON_DOCS)
-    find_package(SPHINX)
-    if(SPHINX_FOUND)
-        message(STATUS "FOUND_SPHINX")
-    
+    find_package(SPHINX REQUIRED)
+
         if(NOT DEFINED SPHINX_THEME)
             set(SPHINX_THEME default)
         endif()
@@ -50,10 +48,6 @@ if(BUILD_PYTHON_DOCS)
         add_dependencies(python-doc _opengmcore )
         add_dependencies(python-doc _inference )
         add_dependencies(python-doc _hdf5 )
-    
-    else()
-        message(STATUS "CANNOT Building HTML documentation with Sphinx , did not find Sphinx")
-    endif()
 endif()
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list