summaryrefslogtreecommitdiff
path: root/Utilities/Sphinx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-04-21 14:08:29 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2022-04-21 14:23:36 -0400
commit313ea361b0435b18e89fb652bf59a8aef25a066b (patch)
treed0a6ea4e46ab2e64cfe81518b0cb7497e94efc1a /Utilities/Sphinx
parentb6a6190877ebc6098fd01fe34dcd4cca39e1f182 (diff)
downloadcmake-313ea361b0435b18e89fb652bf59a8aef25a066b.tar.gz
CMake: Use FindPython instead of FindPythonInterp to build CMake itself
Fixes: #23444
Diffstat (limited to 'Utilities/Sphinx')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 1259748660..c698e3b475 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -101,7 +101,7 @@ if(SPHINX_INFO)
)
endif()
if(SPHINX_QTHELP)
- find_package(PythonInterp REQUIRED)
+ find_package(Python REQUIRED)
find_program(QHELPGENERATOR_EXECUTABLE
NAMES qhelpgenerator-qt5 qhelpgenerator
@@ -124,7 +124,7 @@ if(SPHINX_QTHELP)
# Create proper identifiers. Workaround for
# https://bitbucket.org/birkenfeld/sphinx/issue/1491/qthelp-should-generate-identifiers-for
- COMMAND "${PYTHON_EXECUTABLE}"
+ COMMAND "${Python_EXECUTABLE}"
"${CMAKE_CURRENT_SOURCE_DIR}/create_identifiers.py"
"${CMAKE_CURRENT_BINARY_DIR}/qthelp/"