aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/FindSphinx.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindSphinx.cmake b/cmake/FindSphinx.cmake
index 3bf0a5d..a61f8fe 100644
--- a/cmake/FindSphinx.cmake
+++ b/cmake/FindSphinx.cmake
@@ -218,7 +218,7 @@ endforeach ()
# determine Python executable used by Sphinx
if (Sphinx-build_EXECUTABLE)
# extract python executable from shebang of sphinx-build
- find_package (PythonInterp QUIET)
+ find_package (Python3 QUIET)
set (Sphinx_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
set (Sphinx_PYTHON_OPTIONS)
file (STRINGS "${Sphinx-build_EXECUTABLE}" FIRST_LINE LIMIT_COUNT 1)
@@ -312,4 +312,4 @@ if (NOT Sphinx_DIR AND Sphinx-build_EXECUTABLE)
endif ()
unset (_Sphinx_VERSION)
-unset (_Sphinx_REQUIRED_VARS) \ No newline at end of file
+unset (_Sphinx_REQUIRED_VARS)