Skip to content

Commit cac5203

Browse files
committed
Find Sphinx module
1 parent dafa6a5 commit cac5203

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#Look for an executable called sphinx-build
2+
find_program(SPHINX_EXECUTABLE
3+
NAMES sphinx-build
4+
DOC "Path to sphinx-build executable")
5+
6+
include(FindPackageHandleStandardArgs)
7+
8+
#Handle standard arguments to find_package like REQUIRED and QUIET
9+
find_package_handle_standard_args(Sphinx
10+
"Failed to find sphinx-build executable"
11+
SPHINX_EXECUTABLE)
12+
113
find_package(Doxygen REQUIRED)
214
find_package(Sphinx REQUIRED)
315

0 commit comments

Comments
 (0)