mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
381947509a
* Disable some contribs for cross-compilation * Fix clang-8-darwin build * Also fix docs * Add diagnostics * Check cross-compilation in each file individually. * Disable warning for clang < 9
19 lines
666 B
CMake
19 lines
666 B
CMake
option(ENABLE_ICU "Enable ICU" ON)
|
|
|
|
if(ENABLE_ICU AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
if (APPLE)
|
|
set(ICU_ROOT "/usr/local/opt/icu4c" CACHE STRING "")
|
|
endif()
|
|
find_package(ICU COMPONENTS i18n uc data) # TODO: remove Modules/FindICU.cmake after cmake 3.7
|
|
#set (ICU_LIBRARIES ${ICU_I18N_LIBRARY} ${ICU_UC_LIBRARY} ${ICU_DATA_LIBRARY} CACHE STRING "")
|
|
if(ICU_FOUND)
|
|
set(USE_ICU 1)
|
|
endif()
|
|
endif()
|
|
|
|
if(USE_ICU)
|
|
message(STATUS "Using icu=${USE_ICU}: ${ICU_INCLUDE_DIR} : ${ICU_LIBRARIES}")
|
|
else()
|
|
message(STATUS "Build without ICU (support for collations and charset conversion functions will be disabled)")
|
|
endif()
|