From 3ec654412633bf4b941979c01fee62b221058e7e Mon Sep 17 00:00:00 2001 From: Andrey Andreyevich Bienkowski Date: Wed, 2 Oct 2024 21:28:15 +0300 Subject: [PATCH] FindPythonInterp is deprecated --- CMakeLists.txt | 2 +- i18n-tools/I18NTools.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cf40d1a6..4a3533f96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(Colobot-Data) option(TRANSLATIONS "Enable translations of help and level files" ON) if(TRANSLATIONS) - find_package(PythonInterp 3.0 REQUIRED) + find_package(Python3 REQUIRED) else() message(STATUS "Translations disabled; only English files will be installed") endif() diff --git a/i18n-tools/I18NTools.cmake b/i18n-tools/I18NTools.cmake index 4a6827410..b793fbea7 100644 --- a/i18n-tools/I18NTools.cmake +++ b/i18n-tools/I18NTools.cmake @@ -22,7 +22,7 @@ function(generate_translations_old # first command is used to get list of input and output files when running CMake to # execute appropriate CMake install commands and set up dependencies properly - execute_process(COMMAND ${PYTHON_EXECUTABLE} + execute_process(COMMAND ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR}/i18n-tools/scripts/process_translations.py --mode print_files --type ${type} @@ -48,7 +48,7 @@ function(generate_translations_old # actual command used to generate translations executed when building project add_custom_command(OUTPUT ${signal_file} - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR}/i18n-tools/scripts/process_translations.py --mode generate --type ${type}