mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
b6e01cd47e
* split ColumnAggregateFunction.h * format * Allow use re2_st without cmake * use std type in find_first_symbols.h * fix ArrayEvaluator.h * include fixes * split ColumnConstAggregateFunction.h * fix StorageMaterializedView.h * split AddingDefaultBlockOutputStream.h * move CSVRowInputStream::updateDiagnosticInfo to .cpp * split ParserEnumElement.h * format * split DB/Parsers/ParserUseQuery.h * clean
23 lines
852 B
CMake
23 lines
852 B
CMake
option (USE_INTERNAL_RE2_LIBRARY "Set to FALSE to use system re2 library instead of bundled [slower]" ${NOT_UNBUNDLED})
|
|
|
|
if (NOT USE_INTERNAL_RE2_LIBRARY)
|
|
find_library (RE2_LIBRARY re2)
|
|
find_path (RE2_INCLUDE_DIR NAMES re2/re2.h PATHS ${RE2_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (RE2_LIBRARY AND RE2_INCLUDE_DIR)
|
|
include_directories (${RE2_INCLUDE_DIR})
|
|
set (RE2_ST_LIBRARY ${RE2_LIBRARY})
|
|
else ()
|
|
set (USE_INTERNAL_RE2_LIBRARY 1)
|
|
set (RE2_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libre2")
|
|
set (RE2_ST_INCLUDE_DIR "${ClickHouse_BINARY_DIR}/contrib/libre2")
|
|
include_directories (BEFORE ${RE2_INCLUDE_DIR})
|
|
include_directories (BEFORE ${RE2_ST_INCLUDE_DIR})
|
|
set (RE2_LIBRARY re2)
|
|
set (RE2_ST_LIBRARY re2_st)
|
|
set (USE_RE2_ST 1)
|
|
endif ()
|
|
|
|
message (STATUS "Using re2: ${RE2_INCLUDE_DIR} : ${RE2_LIBRARY}; ${RE2_ST_INCLUDE_DIR} : ${RE2_ST_LIBRARY}")
|