cmake.options 2.9 KB
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3
# =========================================================
# Deps options
# =========================================================
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

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 已提交
21 22 23 24 25 26 27
    MESSAGE("build iconv Win32")
    option(
            BUILD_WITH_ICONV
            "If build iconv on Windows"
            ON
          )

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

wafwerar's avatar
wafwerar 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48
    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
        )

wafwerar's avatar
wafwerar 已提交
49 50 51
    option(
        BUILD_TEST 
        "If build unit tests using googletest" 
wafwerar's avatar
wafwerar 已提交
52
        ON
wafwerar's avatar
wafwerar 已提交
53
    )
54 55 56 57 58 59 60
    
    option(
        TDENGINE_3
        "TDengine 3.x"
        ON
        )

wafwerar's avatar
wafwerar 已提交
61 62 63 64 65 66 67
ELSEIF (TD_DARWIN_64)
    add_definitions(-DCOMPILER_SUPPORTS_CXX13)
    option(
        BUILD_TEST
        "If build unit tests using googletest"
        ON
    )
wafwerar's avatar
wafwerar 已提交
68
ELSE ()
wafwerar's avatar
wafwerar 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
    include(CheckCXXCompilerFlag)
    CHECK_CXX_COMPILER_FLAG("-std=c++13" COMPILER_SUPPORTS_CXX13)
    IF(${COMPILER_SUPPORTS_CXX13})
        add_definitions(-DCOMPILER_SUPPORTS_CXX13)
        option(
            BUILD_TEST
            "If build unit tests using googletest"
            ON
        )
    ELSE ()
        option(
            BUILD_TEST
            "If build unit tests using googletest"
            OFF
        )
    ENDIF ()
wafwerar's avatar
wafwerar 已提交
85
ENDIF ()
86

wafwerar's avatar
wafwerar 已提交
87 88 89 90 91 92
option(
    JEMALLOC_ENABLED
    "If build with jemalloc"
    OFF
    )

S
Shengliang Guan 已提交
93 94
option(
    BUILD_SANITIZER
wafwerar's avatar
wafwerar 已提交
95
    "If build sanitizer"
S
Shengliang Guan 已提交
96 97 98
    OFF
    )

wafwerar's avatar
wafwerar 已提交
99 100 101 102 103 104
option(
    BUILD_ADDR2LINE
    "If build addr2line"
    OFF
    )

H
refact  
Hongze Cheng 已提交
105 106 107 108 109 110 111 112 113
option(
    BUILD_WITH_LEVELDB 
    "If build with leveldb" 
    OFF
)

option(
    BUILD_WITH_ROCKSDB 
    "If build with rocksdb" 
H
more  
Hongze Cheng 已提交
114
    OFF
H
refact  
Hongze Cheng 已提交
115 116
)

H
Hongze Cheng 已提交
117 118 119
option(
    BUILD_WITH_SQLITE
    "If build with sqlite" 
H
more  
Hongze Cheng 已提交
120
    OFF
H
Hongze Cheng 已提交
121 122
)

H
Hongze Cheng 已提交
123 124 125 126 127 128
option(
    BUILD_WITH_BDB
    "If build with BDB" 
    OFF
)

H
refact  
Hongze Cheng 已提交
129 130 131
option(
    BUILD_WITH_LUCENE 
    "If build with lucene" 
dengyihao's avatar
dengyihao 已提交
132
    off 
H
Hongze Cheng 已提交
133 134
)

dengyihao's avatar
dengyihao 已提交
135

H
Hongze Cheng 已提交
136 137 138 139 140 141
option(
    BUILD_WITH_NURAFT
    "If build with NuRaft" 
    OFF
)

H
Hongze Cheng 已提交
142 143 144
option(
    BUILD_WITH_UV
    "If build with libuv" 
dengyihao's avatar
fix bug  
dengyihao 已提交
145
    ON  
H
Hongze Cheng 已提交
146 147
)

dengyihao's avatar
dengyihao 已提交
148 149 150
option(
    BUILD_WITH_UV_TRANS
    "If build with libuv_trans " 
dengyihao's avatar
fix bug  
dengyihao 已提交
151
    ON 
dengyihao's avatar
dengyihao 已提交
152 153
)

M
Minghao Li 已提交
154 155 156 157 158 159
option(
    BUILD_WITH_CRAFT
    "If build with canonical-raft"
    OFF
)

M
Minghao Li 已提交
160 161 162 163 164 165
option(
    BUILD_WITH_TRAFT
    "If build with traft"
    OFF
)

166 167
IF(${TD_LINUX} MATCHES TRUE)

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

174 175
ENDIF ()

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

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