mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
b026eb7797
* Add submodule contrib/capnproto * Use contrib/capnproto, remove include_directories * Fix include * Clean * Fix werror * Update doc * Fix * Final fix * Fxi
22 lines
758 B
CMake
22 lines
758 B
CMake
option (ENABLE_ICU "Enable ICU" ON)
|
|
|
|
if (ENABLE_ICU)
|
|
set (ICU_PATHS "/usr/local/opt/icu4c/lib")
|
|
set (ICU_INCLUDE_PATHS "/usr/local/opt/icu4c/include")
|
|
find_library (ICUI18N icui18n PATHS ${ICU_PATHS})
|
|
find_library (ICUUC icuuc PATHS ${ICU_PATHS})
|
|
find_library (ICUDATA icudata PATHS ${ICU_PATHS})
|
|
set (ICU_LIBS ${ICUI18N} ${ICUUC} ${ICUDATA})
|
|
|
|
find_path (ICU_INCLUDE_DIR NAMES unicode/unistr.h PATHS ${ICU_INCLUDE_PATHS})
|
|
if (ICU_INCLUDE_DIR AND ICU_LIBS)
|
|
set(USE_ICU 1)
|
|
endif ()
|
|
endif ()
|
|
|
|
if (USE_ICU)
|
|
message (STATUS "Using icu=${USE_ICU}: ${ICU_INCLUDE_DIR} : ${ICU_LIBS}")
|
|
else ()
|
|
message (STATUS "Build without ICU (support for collations and charset conversion functions will be disabled)")
|
|
endif ()
|