From bed67d538fe29b764c6b09b6b7e3b7b1bba9fb32 Mon Sep 17 00:00:00 2001 From: Kai Szuttor Date: Thu, 2 Feb 2017 20:10:06 +0100 Subject: [PATCH] sphinx: update of FindSphinx.cmake. --- cmake/FindSphinx.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindSphinx.cmake b/cmake/FindSphinx.cmake index 9b17cf75ebe..efec4983307 100644 --- a/cmake/FindSphinx.cmake +++ b/cmake/FindSphinx.cmake @@ -1,6 +1,6 @@ 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/ @@ -8,7 +8,7 @@ find_program(SPHINX_EXECUTABLE NAMES sphinx-build 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/