diff options
author | svidyuk <svidyuk@yandex-team.com> | 2022-12-19 10:42:58 +0300 |
---|---|---|
committer | svidyuk <svidyuk@yandex-team.com> | 2022-12-19 10:42:58 +0300 |
commit | a7fbd73c43fc29307b4de84d131ce3bc3b3feb69 (patch) | |
tree | ffccafb541273cb2a76223d1d51e6d715db9d2df | |
parent | 4df48741a94679a2925fb787e50e7152edc4bb7d (diff) | |
download | ydb-a7fbd73c43fc29307b4de84d131ce3bc3b3feb69.tar.gz |
Revert commit rXXXXXX
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/yandex_common.cmake (renamed from cmake/common.cmake) | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7c7d91ae2..59b3db065a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,11 +23,11 @@ enable_testing() include(cmake/antlr.cmake) include(cmake/archive.cmake) include(cmake/bison.cmake) -include(cmake/common.cmake) include(cmake/conan.cmake) include(cmake/global_flags.cmake) include(cmake/llvm-tools.cmake) include(cmake/protobuf.cmake) +include(cmake/yandex_common.cmake) include(cmake/global_vars.cmake) if (CMAKE_CROSSCOMPILING) diff --git a/cmake/common.cmake b/cmake/yandex_common.cmake index aedd887a20..1c136d5804 100644 --- a/cmake/common.cmake +++ b/cmake/yandex_common.cmake @@ -1,5 +1,6 @@ # Set of common macros +find_package(Python2 REQUIRED) find_package(Python3 REQUIRED) add_compile_definitions(CATBOOST_OPENSOURCE=yes) @@ -38,7 +39,7 @@ function(target_joined_source TgtName Out) endforeach() add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${Out} - COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/gen_join_srcs.py ${CMAKE_CURRENT_BINARY_DIR}/${Out} ${IncludesList} + COMMAND Python2::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/gen_join_srcs.py ${CMAKE_CURRENT_BINARY_DIR}/${Out} ${IncludesList} DEPENDS ${CMAKE_SOURCE_DIR}/build/scripts/gen_join_srcs.py ${ARGN} ) target_sources(${TgtName} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/${Out}) @@ -136,7 +137,7 @@ endfunction() function(vcs_info Tgt) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c - COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py no-vcs dummy.json ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c + COMMAND Python2::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py no-vcs dummy.json ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c DEPENDS ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c ) target_sources(${Tgt} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c) |