brintos

brintos / llvm-project-archived public Read only

0
0
Text · 939 B · 9d252e8 Raw
28 lines · plain
1# CMake find_package() Module for Sphinx documentation generator2# http://sphinx-doc.org/3#4# Example usage:5#6# find_package(Sphinx)7#8# If successful the following variables will be defined9# SPHINX_FOUND10# SPHINX_EXECUTABLE11 12find_program(SPHINX_EXECUTABLE13             NAMES sphinx-build sphinx-build214             DOC "Path to sphinx-build executable")15 16# Handle REQUIRED and QUIET arguments17# this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists18include(FindPackageHandleStandardArgs)19find_package_handle_standard_args(Sphinx20                                  "Failed to locate sphinx-build executable"21                                  SPHINX_EXECUTABLE)22 23# Provide options for controlling different types of output24option(SPHINX_OUTPUT_HTML "Output standalone HTML files" ON)25option(SPHINX_OUTPUT_MAN "Output man pages" ON)26 27option(SPHINX_WARNINGS_AS_ERRORS "When building documentation treat warnings as errors" ON)28