Skip to content

Commit

Permalink
Add the cmake file for searching sphinx (pytorch#536)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#536

Address pytorch#532

Reviewed By: jspark1105

Differential Revision: D26916852

fbshipit-source-id: 2152bcbcb624a656cee37127369df722164e41e1
  • Loading branch information
jianyuh authored and facebook-github-bot committed Mar 9, 2021
1 parent 25d1620 commit 4b88f40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/modules/FindSphinx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Search sphinx-build
find_program(SPHINX_EXECUTABLE
NAMES sphinx-build
DOC "Path to sphinx-build executable")

include(FindPackageHandleStandardArgs)

find_package_handle_standard_args(Sphinx
"Failed to find sphinx-build executable"
SPHINX_EXECUTABLE)

0 comments on commit 4b88f40

Please sign in to comment.