cmake.options 2.9 KB
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3
# =========================================================
# Deps options
# =========================================================
4

5 6 7 8 9 10
option(
    BUILD_TEST
    "If build unit tests using googletest"
    OFF
)

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
IF(${TD_WINDOWS})

    MESSAGE("build pthread Win32")
    option(
            BUILD_PTHREAD
            "If build pthread on Windows"
            ON
          )

    MESSAGE("build gnu regex for Windows")
    option(
            BUILD_GNUREGEX
            "If build gnu regex on Windows"
            ON
          )

wafwerar's avatar
wafwerar 已提交
27 28 29 30 31 32 33
    MESSAGE("build iconv Win32")
    option(
            BUILD_WITH_ICONV
            "If build iconv on Windows"
            ON
          )

wafwerar's avatar
wafwerar 已提交
34 35 36 37 38 39
    MESSAGE("build msvcregex Win32")
    option(
            BUILD_MSVCREGEX
            "If build msvcregex on Windows"
            ON
          )
40

wafwerar's avatar
wafwerar 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53
    MESSAGE("build wcwidth Win32")
    option(
            BUILD_WCWIDTH
            "If build wcwidth on Windows"
            ON
          )

    MESSAGE("build wingetopt Win32")
    option(
            BUILD_WINGETOPT 
                "If build wingetopt on Windows"
            ON
        )
54 55
    
    option(
wafwerar's avatar
wafwerar 已提交
56 57 58 59 60 61 62 63 64
            TDENGINE_3
            "TDengine 3.x for taos-tools"
            ON
        )
    
    option(
            BUILD_CRASHDUMP
            "If build crashdump on Windows" 
            ON
65 66
        )

D
Dingle Zhang 已提交
67 68 69 70 71 72 73
    MESSAGE("build geos Win32")
    option(
            BUILD_GEOS
            "If build geos on Windows"
            ON
        )

wafwerar's avatar
wafwerar 已提交
74
ELSEIF (TD_DARWIN_64)
75
    IF(${BUILD_TEST})
wafwerar's avatar
wafwerar 已提交
76 77
        add_definitions(-DCOMPILER_SUPPORTS_CXX13)
    ENDIF ()
wafwerar's avatar
wafwerar 已提交
78
ENDIF ()
79

H
Hongze Cheng 已提交
80 81 82
option(
        BUILD_GEOS
        "If build geos on Windows"
X
xleili 已提交
83
        ON
H
Hongze Cheng 已提交
84 85
    )

wafwerar's avatar
wafwerar 已提交
86 87 88 89 90 91
option(
    BUILD_SHARED_LIBS
    ""
    OFF
    )

wafwerar's avatar
wafwerar 已提交
92 93 94 95 96 97
option(
    RUST_BINDINGS
    "If build with rust-bindings"
    ON
    )

wafwerar's avatar
wafwerar 已提交
98 99 100 101 102 103
option(
    JEMALLOC_ENABLED
    "If build with jemalloc"
    OFF
    )

S
Shengliang Guan 已提交
104 105
option(
    BUILD_SANITIZER
wafwerar's avatar
wafwerar 已提交
106
    "If build sanitizer"
S
Shengliang Guan 已提交
107 108 109
    OFF
    )

wafwerar's avatar
wafwerar 已提交
110 111 112 113 114 115
option(
    BUILD_ADDR2LINE
    "If build addr2line"
    OFF
    )

H
refact  
Hongze Cheng 已提交
116 117 118 119 120 121 122 123 124
option(
    BUILD_WITH_LEVELDB 
    "If build with leveldb" 
    OFF
)

option(
    BUILD_WITH_ROCKSDB 
    "If build with rocksdb" 
M
Minglei Jin 已提交
125
    ON
H
refact  
Hongze Cheng 已提交
126 127
)

H
Hongze Cheng 已提交
128 129 130
option(
    BUILD_WITH_SQLITE
    "If build with sqlite" 
H
more  
Hongze Cheng 已提交
131
    OFF
H
Hongze Cheng 已提交
132 133
)

H
Hongze Cheng 已提交
134 135 136 137 138 139
option(
    BUILD_WITH_BDB
    "If build with BDB" 
    OFF
)

H
refact  
Hongze Cheng 已提交
140 141 142
option(
    BUILD_WITH_LUCENE 
    "If build with lucene" 
dengyihao's avatar
dengyihao 已提交
143
    off 
H
Hongze Cheng 已提交
144 145
)

dengyihao's avatar
dengyihao 已提交
146

H
Hongze Cheng 已提交
147 148 149 150 151 152
option(
    BUILD_WITH_NURAFT
    "If build with NuRaft" 
    OFF
)

H
Hongze Cheng 已提交
153 154 155
option(
    BUILD_WITH_UV
    "If build with libuv" 
dengyihao's avatar
fix bug  
dengyihao 已提交
156
    ON  
H
Hongze Cheng 已提交
157 158
)

dengyihao's avatar
dengyihao 已提交
159 160 161
option(
    BUILD_WITH_UV_TRANS
    "If build with libuv_trans " 
dengyihao's avatar
fix bug  
dengyihao 已提交
162
    ON 
dengyihao's avatar
dengyihao 已提交
163 164
)

165 166
IF(${TD_LINUX} MATCHES TRUE)

H
Hongze Cheng 已提交
167 168 169
option(
    BUILD_DEPENDENCY_TESTS 
    "If build dependency tests" 
H
Hongze Cheng 已提交
170
    ON
H
more  
Hongze Cheng 已提交
171 172
)

173 174
ENDIF ()

H
more  
Hongze Cheng 已提交
175 176 177
option(
    BUILD_DOCS
    "If use doxygen build documents" 
H
Hongze Cheng 已提交
178
    OFF
dengyihao's avatar
dengyihao 已提交
179
)
dengyihao's avatar
dengyihao 已提交
180 181

option(
dengyihao's avatar
dengyihao 已提交
182
   BUILD_WITH_INVERTEDINDEX
dengyihao's avatar
dengyihao 已提交
183
   "If use invertedIndex" 
dengyihao's avatar
dengyihao 已提交
184
   ON 
dengyihao's avatar
dengyihao 已提交
185
)
dengyihao's avatar
dengyihao 已提交
186

D
dapan1121 已提交
187 188 189 190 191
option(
   BUILD_RELEASE
   "If build release version"
   OFF
)
D
dapan1121 已提交
192 193 194 195 196 197

option(
   BUILD_CONTRIB
   "If build thirdpart from source"
   OFF
)