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")
