We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98c904 commit deeabfbCopy full SHA for deeabfb
CMakeLists.txt
@@ -192,10 +192,10 @@ if (BUILD_VERSION STREQUAL "0.0.0")
192
file (STRINGS ${PROJECT_SOURCE_DIR}/VERSION_CURRENT BUILD_VERSION)
193
message (STATUS "File VERSION_CURRENT contained BUILD_VERSION ${BUILD_VERSION}")
194
else ()
195
- find_package (PythonInterp)
196
- if (PYTHONINTERP_FOUND)
+ find_package (Python COMPONENTS Interpreter)
+ if (TARGET Python::Interpreter)
197
execute_process (
198
- COMMAND ${PYTHON_EXECUTABLE} etc/calc_release_version.py
+ COMMAND "${Python_EXECUTABLE}" etc/calc_release_version.py
199
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
200
OUTPUT_VARIABLE CALC_RELEASE_VERSION
201
RESULT_VARIABLE CALC_RELEASE_VERSION_RESULT
0 commit comments