Skip to content

Commit

Permalink
sphinx: update of FindSphinx.cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSzuttor committed Feb 2, 2017
1 parent c0fdb4f commit bed67d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindSphinx.cmake
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
include(FindPackageHandleStandardArgs)

find_program(SPHINX_EXECUTABLE NAMES sphinx-build
find_program(SPHINX_EXECUTABLE NAMES sphinx-build sphinx-build-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}
HINTS
$ENV{SPHINX_DIR}
PATHS /opt/local/ /usr/local/ $ENV{HOME}/Library/Python/2.7/
PATH_SUFFIXES bin
DOC "Sphinx documentation generator."
)

find_program(SPHINX_API_DOC_EXE NAMES sphinx-apidoc
find_program(SPHINX_API_DOC_EXE NAMES sphinx-apidoc sphinx-apidoc-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}
HINTS
PATH_SUFFIXES bin
PATHS /opt/local/ /usr/local/ $ENV{HOME}/Library/Python/2.7/
Expand Down

0 comments on commit bed67d5

Please sign in to comment.