mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Always use Python3 cmake package instead of the Python one
This commit is contained in:
parent
d40205135c
commit
a128fdcc28
3 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ get_filename_component(submodules_loc "Telegram" REALPATH)
|
|||
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
|
||||
|
||||
if (NOT DESKTOP_APP_USE_PACKAGED AND WIN32)
|
||||
set(Python_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python)
|
||||
set(Python3_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python)
|
||||
endif()
|
||||
|
||||
include(cmake/variables.cmake)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
function(generate_scheme target_name script scheme_files)
|
||||
find_package(Python REQUIRED)
|
||||
find_package(Python3 REQUIRED)
|
||||
|
||||
set(gen_dst ${CMAKE_CURRENT_BINARY_DIR}/gen)
|
||||
file(MAKE_DIRECTORY ${gen_dst})
|
||||
|
@ -24,7 +24,7 @@ function(generate_scheme target_name script scheme_files)
|
|||
BYPRODUCTS
|
||||
${gen_files}
|
||||
COMMAND
|
||||
${Python_EXECUTABLE}
|
||||
${Python3_EXECUTABLE}
|
||||
${script}
|
||||
-o${gen_dst}/scheme
|
||||
${scheme_files}
|
||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
|||
Subproject commit 02e600c6f3af297c2e18af0ea5ee8320e5725554
|
||||
Subproject commit a41fa6e14006204f3fea7993a775e14f8fdde9fc
|
Loading…
Add table
Reference in a new issue