version.inc 873 字节
Newer Older
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 38 39 40 41 42
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

SET(TD_VER_1 "2")
SET(TD_VER_2 "0")
SET(TD_VER_3 "2")
SET(TD_VER_4 "3")
SET(TD_VER_GIT "d711657139620f6c50f362597020705b8ad26bd2")
SET(TD_VER_GIT_INTERNAL "1d74ae24c541ffbb280e8630883c0236cd45f8c7")

SET(TD_VER_VERTYPE "stable")
SET(TD_VER_CPUTYPE "x64")
SET(TD_VER_OSTYPE  "Linux")

SET(TD_VER_COMPATIBLE "2.0.0.0")
STRING(TIMESTAMP TD_VER_DATE "%Y-%m-%d %H:%M:%S") 

IF (TD_LINUX_64)
  SET(TD_VER_CPUTYPE "x64")
ENDIF ()

IF (TD_LINUX_32)
  SET(TD_VER_CPUTYPE "x86")
ENDIF ()

IF (TD_ARM_64)
  SET(TD_VER_CPUTYPE "aarch64")
ENDIF ()

IF (TD_ARM_32)
  SET(TD_VER_CPUTYPE "aarch32")
ENDIF ()
  
IF (TD_WINDOWS_64)
  SET(TD_VER_CPUTYPE "x64")
ENDIF ()

IF (TD_WINDOWS_32)
  SET(TD_VER_CPUTYPE "x86")
ENDIF ()

CONFIGURE_FILE("${TD_COMMUNITY_DIR}/src/util/src/version.c.in" "${TD_COMMUNITY_DIR}/src/util/src/version.c")