aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2024-03-19 18:07:30 +0200
committerPetri Lehtinen <petri@digip.org>2024-03-19 18:07:30 +0200
commit675129d36590dcfcca09b733a50ce36d39ff7708 (patch)
tree22c0de9cd885034de24a09bc78c500c992a433fe
parentd0474877c3bca9e87bec1e5d109a674f9300486e (diff)
downloadjansson-675129d36590dcfcca09b733a50ce36d39ff7708.zip
jansson-675129d36590dcfcca09b733a50ce36d39ff7708.tar.gz
jansson-675129d36590dcfcca09b733a50ce36d39ff7708.tar.bz2
Find Python correctly for Sphinxbuild-fixes
-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)