diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-07-14 06:16:13 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-07-14 06:16:13 +0300 |
commit | 024fde27ad2d69a66d20695e96071b116e6a842f (patch) | |
tree | 10fae64f6593c254813e3516784cfbd6433875fb /cmake | |
parent | 2b2fc6524acf1192001a893800db21bbc9d03e37 (diff) | |
download | ydb-024fde27ad2d69a66d20695e96071b116e6a842f.tar.gz |
External build system generator release 41
Update tools: yexport
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/common.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 00f970a036..7ef4780e71 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -161,9 +161,15 @@ endfunction() function(vcs_info Tgt) add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vcs_info.json + COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/devtools/yexport/scripts/generate_vcs_info.py ${CMAKE_CURRENT_BINARY_DIR}/vcs_info.json ${CMAKE_SOURCE_DIR} + DEPENDS ${CMAKE_SOURCE_DIR}/devtools/yexport/scripts/generate_vcs_info.py + ) + + 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 - DEPENDS ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c + COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py ${CMAKE_CURRENT_BINARY_DIR}/vcs_info.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 ${CMAKE_CURRENT_BINARY_DIR}/vcs_info.json ) target_sources(${Tgt} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c) endfunction() |