]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Detect sphinx theme directly in conf.py.in file
authorrnv <rnv@opencascade.com>
Fri, 17 Aug 2018 11:52:26 +0000 (14:52 +0300)
committerrnv <rnv@opencascade.com>
Fri, 17 Aug 2018 11:52:26 +0000 (14:52 +0300)
cmake/FindSphinx.cmake

index 668888327ca2ca6c922eb8f03b470f8cf59d79e5..a54038517d268fde4b64675c9b3a8518c0ef5162 100644 (file)
@@ -59,17 +59,6 @@ ENDIF()
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sphinx REQUIRED_VARS SPHINX_EXECUTABLE SPHINX_APIDOC_EXECUTABLE SPHINX_INTL_EXECUTABLE)
 
-IF(SPHINX_EXECUTABLE)
-  EXECUTE_PROCESS(COMMAND ${SPHINX_EXECUTABLE} "--version" OUTPUT_VARIABLE SPHINX_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
-  STRING(REGEX REPLACE ".* ([0-9.]+)$" "\\1" SPHINX_VERSION "${SPHINX_VERSION}" )
-  MESSAGE(STATUS "Sphinx version is ${SPHINX_VERSION}")
-  IF(SPHINX_VERSION VERSION_LESS "1.3")
-    SET(SPHINX_THEME "default")
-  ELSE()
-    SET(SPHINX_THEME "classic")
-  ENDIF()
-ENDIF(SPHINX_EXECUTABLE)
-
 FOREACH(_ext ${Sphinx_EXTENSIONS})
   EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import ${_ext}; print 'ok'" OUTPUT_VARIABLE _has_ext ERROR_QUIET)
   IF(_has_ext)