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}