build: Use python3 instead of python symlink

The python symlink is not present on all
systems. python3 should likely always be
available if python3 is installed
This commit is contained in:
Lars Toenning
2024-06-13 19:50:25 +02:00
parent 5621b6a211
commit e1f52f3e88

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
macro(get_version_number)
execute_process(COMMAND python scripts/utils.py --version
execute_process(COMMAND python3 scripts/utils.py --version
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_VARIABLE SWIFT_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)