Disable git commit hash calculation, because the current approach must be completely replaced.

This commit is contained in:
levlam 2022-07-09 22:27:41 +03:00
parent d37ad61f86
commit bb5ebc09ef
2 changed files with 3 additions and 5 deletions

View File

@ -152,11 +152,6 @@ if (CLANG OR GCC)
endif()
endif()
if (NOT DEFINED TD_GIT_COMMIT)
include(GetGitInfo)
get_git_info()
endif()
add_subdirectory(tdtl)
add_subdirectory(tdutils)

View File

@ -343,6 +343,9 @@ set(TDUTILS_TEST_SOURCE
add_library(tdutils STATIC ${TDUTILS_SOURCE})
if (DEFINED TD_GIT_COMMIT)
# this forces the whole tdutils to be recompiled after each commit with Makefile generator as explained at
# https://cmake.org/pipermail/cmake-developers/2012-October/005411.html,
# so this can't be improved for production-ready state
set_property(SOURCE td/utils/GitInfo.cpp APPEND PROPERTY COMPILE_DEFINITIONS "GIT_COMMIT=\"${TD_GIT_COMMIT}\"")
endif()
if (DEFINED TD_GIT_DIRTY)