Skip to content

Commit

Permalink
FindPythonInterp is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Oct 2, 2024
1 parent 36f7b7d commit 3ec6544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions i18n-tools/I18NTools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 3ec6544

Please sign in to comment.