cmake_common.patch 912 B

12345678910111213
  1. diff --git a/cmake/common.cmake b/cmake/common.cmake
  2. index 00f970a036..0408e57701 100644
  3. --- a/cmake/common.cmake
  4. +++ b/cmake/common.cmake
  5. @@ -162,7 +162,7 @@ endfunction()
  6. function(vcs_info Tgt)
  7. add_custom_command(
  8. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c
  9. - 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
  10. + COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py ${CMAKE_SOURCE_DIR}/vcs-info.json ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c
  11. DEPENDS ${CMAKE_SOURCE_DIR}/build/scripts/vcs_info.py ${CMAKE_SOURCE_DIR}/build/scripts/c_templates/svn_interface.c
  12. )
  13. target_sources(${Tgt} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/__vcs_version__.c)