Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindPythonInterp is deprecated #119

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading