Merge branch release-5-1
[alexxy/gromacs.git] / docs / CMakeLists.txt
index 7ad94c44b518f27d6c1dc594955cc3453ff2c00e..2207bd35bb58d094dc1bb75246c8819580e71813 100644 (file)
@@ -79,6 +79,10 @@ add_subdirectory(doxygen)
 add_subdirectory(manual)
 
 if (SPHINX_FOUND)
+    set(SPHINX_THEME default)
+    if (NOT SPHINX_EXECUTABLE_VERSION VERSION_LESS 1.3)
+        set(SPHINX_THEME classic)
+    endif()
     # We need to have all the Sphinx input files in a single directory, and
     # since some of them are generated, we copy everything into the build tree,
     # to this directory.
@@ -148,6 +152,7 @@ if (SPHINX_FOUND)
 
     gmx_configure_version_file(conf-vars.py.cmakein ${SPHINX_CONFIG_VARS_FILE}
         EXTRA_VARS
+            SPHINX_THEME
             SPHINX_EXTENSION_PATH
             EXPECTED_DOXYGEN_VERSION
             GMX_CMAKE_MINIMUM_REQUIRED_VERSION REQUIRED_CUDA_VERSION