aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindSphinx.cmake
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-07-19 22:50:04 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-30 08:25:19 -0800
commita8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f (patch)
treecfded8a49cfc5b7e52ab2615d24a74c5fa7b479e /cmake/modules/FindSphinx.cmake
parent9cb3984eb0e0829d4f05b6116f6ae572bc44d21b (diff)
downloadpaludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.gz
paludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.xz
build: introduce cmake based build system
Diffstat (limited to 'cmake/modules/FindSphinx.cmake')
-rw-r--r--cmake/modules/FindSphinx.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/modules/FindSphinx.cmake b/cmake/modules/FindSphinx.cmake
new file mode 100644
index 000000000..8e18e2cb2
--- /dev/null
+++ b/cmake/modules/FindSphinx.cmake
@@ -0,0 +1,24 @@
+#.rst:
+# FindSphinx
+# ------------
+#
+# Find sphinx documentation generator
+#
+# The module defines the following variables:
+#
+# ::
+#
+# SPHINX_FOUND - true if sphinx was found
+# SPHINX_EXECUTABLE - sphinx binary
+
+find_program(SPHINX_EXECUTABLE
+ NAMES
+ sphinx-build
+ HINTS
+ ${SPHINX_ROOT_DIR}
+ ${CMAKE_INSTALL_PREFIX})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Sphinx DEFAULT_MSG SPHINX_EXECUTABLE)
+mark_as_advanced(SPHINX_EXECUTABLE)
+