~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to cmake/modules/FindSphinx.cmake

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# CMake find_package() Module for Sphinx documentation generator
 
2
# http://sphinx-doc.org/
 
3
#
 
4
# Example usage:
 
5
#
 
6
# find_package(Sphinx)
 
7
#
 
8
# If successful the following variables will be defined
 
9
# SPHINX_FOUND
 
10
# SPHINX_EXECUTABLE
 
11
 
 
12
find_program(SPHINX_EXECUTABLE
 
13
             NAMES sphinx-build sphinx-build2
 
14
             DOC "Path to sphinx-build executable")
 
15
 
 
16
# Handle REQUIRED and QUIET arguments
 
17
# this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists
 
18
include(FindPackageHandleStandardArgs)
 
19
find_package_handle_standard_args(Sphinx
 
20
                                  "Failed to locate sphinx-build executable"
 
21
                                  SPHINX_EXECUTABLE)
 
22
 
 
23
# Provide options for controlling different types of output
 
24
option(SPHINX_OUTPUT_HTML "Output standalone HTML files" ON)
 
25
option(SPHINX_OUTPUT_MAN "Output man pages" ON)
 
26
 
 
27
option(SPHINX_WARNINGS_AS_ERRORS "When building documentation treat warnings as errors" ON)