summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindSPHINX.cmake
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-09-22 16:59:13 +0200
committerlouiz’ <louiz@louiz.org>2018-09-22 16:59:13 +0200
commit1a194a292e12c1f752afabe5a0bdc3b76706ee06 (patch)
tree6ac6ac68c285cc966350a85917143842ec4bb335 /cmake/Modules/FindSPHINX.cmake
parentbf97478b89b24bbf3a6a92c9137041cf2e987f02 (diff)
downloadbiboumi-1a194a292e12c1f752afabe5a0bdc3b76706ee06.tar.gz
biboumi-1a194a292e12c1f752afabe5a0bdc3b76706ee06.tar.bz2
biboumi-1a194a292e12c1f752afabe5a0bdc3b76706ee06.tar.xz
biboumi-1a194a292e12c1f752afabe5a0bdc3b76706ee06.zip
Diffstat (limited to 'cmake/Modules/FindSPHINX.cmake')
-rw-r--r--cmake/Modules/FindSPHINX.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/Modules/FindSPHINX.cmake b/cmake/Modules/FindSPHINX.cmake
new file mode 100644
index 0000000..c39b827
--- /dev/null
+++ b/cmake/Modules/FindSPHINX.cmake
@@ -0,0 +1,12 @@
+find_program(SPHINX_BIN
+ NAMES sphinx-build
+ HINTS $ENV{SPHINX_DIR}
+ PATH_SUFFIXES bin
+ DOC "Sphinx executable to build the documentation"
+)
+
+include(FindPackageHandleStandardArgs)
+
+find_package_handle_standard_args(SPHINX REQUIRED_VARS SPHINX_BIN)
+
+mark_as_advanced(SPHINX_EXECUTABLE)