summaryrefslogtreecommitdiff
path: root/.gitlab/ci/configure_fedora34_sphinx_package.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-10 10:44:24 -0400
committerBrad King <brad.king@kitware.com>2021-05-12 07:17:54 -0400
commit89478e643f42bfdf0ace9f83416536bea9f23fab (patch)
treecf98e148b37aeec97c3cf478e78510f652e01e02 /.gitlab/ci/configure_fedora34_sphinx_package.cmake
parent6ff48b862c0f24f9ad9f89c8c3511f22a8a54e9d (diff)
downloadcmake-89478e643f42bfdf0ace9f83416536bea9f23fab.tar.gz
gitlab-ci: update to Fedora 34 base images
Diffstat (limited to '.gitlab/ci/configure_fedora34_sphinx_package.cmake')
-rw-r--r--.gitlab/ci/configure_fedora34_sphinx_package.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_fedora34_sphinx_package.cmake b/.gitlab/ci/configure_fedora34_sphinx_package.cmake
new file mode 100644
index 0000000000..e839de80c2
--- /dev/null
+++ b/.gitlab/ci/configure_fedora34_sphinx_package.cmake
@@ -0,0 +1,13 @@
+# Disable formats not wanted in the package's documentation.
+set(SPHINX_INFO OFF CACHE BOOL "")
+set(SPHINX_SINGLEHTML OFF CACHE BOOL "")
+set(SPHINX_TEXT OFF CACHE BOOL "")
+
+# Set the destination directory for docs that packages expect.
+set(CMAKE_DOC_DIR "doc/cmake" CACHE STRING "")
+
+# Use a custom prefix to avoid conflicting with other builds.
+set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install-doc" CACHE PATH "")
+
+include("${CMAKE_CURRENT_LIST_DIR}/configure_sphinx.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")