aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindSphinx.cmake
blob: 8e18e2cb2646feeb423223abf3c78cd22a5a19db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)