define.inc 541 字节
Newer Older
S
[TD-58]  
slguan 已提交
1 2 3 4
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

IF (TD_CLUSTER)
S
slguan 已提交
5
  ADD_DEFINITIONS(-D_CLUSTER)
6 7 8 9 10 11 12 13 14
ENDIF ()

IF (TD_MPEER)
  ADD_DEFINITIONS(-D_MPEER)
ENDIF ()

IF (TD_VPEER)
  ADD_DEFINITIONS(-D_VPEER)
  ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=3)
S
[TD-58]  
slguan 已提交
15
ELSE ()
16
  ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=1)  
S
[TD-58]  
slguan 已提交
17 18 19 20 21 22
ENDIF ()

IF (TD_ACCOUNT)
  ADD_DEFINITIONS(-D_ACCOUNT)
ENDIF ()

S
[TD-63]  
slguan 已提交
23 24 25 26
IF (TD_GRANT)
  ADD_DEFINITIONS(-D_GRANT)
ENDIF ()

S
[TD-58]  
slguan 已提交
27 28 29 30 31 32 33
IF (TD_GODLL)
  ADD_DEFINITIONS(-D_TD_GO_DLL_)
ENDIF ()

IF (TD_MEM_CHECK)
  ADD_DEFINITIONS(-DTAOS_MEM_CHECK)
ENDIF ()