aboutsummaryrefslogtreecommitdiffstats
path: root/community/libcouchbase/disable_git_version_check.patch
blob: 438e37b8c4e7169a01cdf250869efd7de0f821c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/cmake/Modules/GetVersionInfo.cmake
+++ b/cmake/Modules/GetVersionInfo.cmake
@@ -7,34 +7,6 @@
 #  LCB_VERSION_MINOR
 #  LCB_VERSION_PATCH
 
-## Try git first ##
-FIND_PROGRAM(GIT_EXECUTABLE NAMES git git.exe)
-MACRO(RUNGIT outvar)
-    EXECUTE_PROCESS(COMMAND git ${ARGN}
-        OUTPUT_VARIABLE ${outvar}
-        WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-        OUTPUT_STRIP_TRAILING_WHITESPACE)
-ENDMACRO()
-
-if (GIT_EXECUTABLE)
-    RUNGIT(LCB_REVDESCRIBE describe --long)
-    RUNGIT(LCB_VERSION describe)
-    STRING(REPLACE "-" "_" LCB_VERSION "${LCB_VERSION}")
-    MESSAGE(STATUS "Sanitized VERSION=${LCB_VERSION}")
-    RUNGIT(LCB_VERSION_CHANGESET rev-parse HEAD)
-
-    EXECUTE_PROCESS(
-        COMMAND echo ${LCB_VERSION}
-        COMMAND awk -F. "{printf \"0x%0.2d%0.2d%0.2d\", $1, $2, $3}"
-        WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
-        OUTPUT_VARIABLE LCB_VERSION_HEX)
-ENDIF()
-
-IF(LCB_VERSION)
-    # Have the version information
-    CONFIGURE_FILE(${LCB_GENINFODIR}/distinfo.cmake.in ${LCB_GENINFODIR}/distinfo.cmake)
-ENDIF()
-
 # library version
 IF(NOT LCB_VERSION AND EXISTS ${LCB_GENINFODIR}/distinfo.cmake)
     INCLUDE(${LCB_GENINFODIR}/distinfo.cmake)