Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include optional sphinx dependency in cmake build
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Talen from https://llvm.org/svn/llvm-project/llvm/trunk/cmake/modules/FindSphinx.cmake | ||
# under "UIUC" BSD-Style license. | ||
# CMake find_package() Module for Sphinx documentation generator | ||
# http://sphinx-doc.org/ | ||
# | ||
# Example usage: | ||
# | ||
# find_package(Sphinx) | ||
# | ||
# If successful the following variables will be defined | ||
# SPHINX_FOUND | ||
# SPHINX_EXECUTABLE | ||
|
||
find_program(SPHINX_EXECUTABLE | ||
NAMES sphinx-build sphinx-build2 | ||
DOC "Path to sphinx-build executable") | ||
|
||
# Handle REQUIRED and QUIET arguments | ||
# this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Sphinx | ||
"Failed to locate sphinx-build executable" | ||
SPHINX_EXECUTABLE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters