2021-04-02 10:57:46 +00:00
|
|
|
if(ARCH_AMD64 OR ARCH_ARM)
|
2021-04-01 21:06:21 +00:00
|
|
|
option (ENABLE_BASE64 "Enable base64" ${ENABLE_LIBRARIES})
|
|
|
|
elseif(ENABLE_BASE64)
|
2021-04-02 10:57:46 +00:00
|
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "base64 library is only supported on x86_64 and aarch64")
|
2021-04-01 21:06:21 +00:00
|
|
|
endif()
|
2020-08-14 15:44:04 +00:00
|
|
|
|
|
|
|
if (NOT ENABLE_BASE64)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2019-12-28 03:07:02 +00:00
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/base64/LICENSE")
|
2018-12-19 16:25:38 +00:00
|
|
|
set (MISSING_INTERNAL_BASE64_LIBRARY 1)
|
2021-10-17 23:29:04 +00:00
|
|
|
message (WARNING "submodule contrib/base64 is missing. to fix try run: \n git submodule update --init")
|
2018-12-19 16:25:38 +00:00
|
|
|
endif ()
|
|
|
|
|
2020-08-14 15:44:04 +00:00
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/base64")
|
2021-10-17 23:29:04 +00:00
|
|
|
message (WARNING "submodule contrib/base64 is missing. to fix try run: \n git submodule update --init")
|
2020-08-14 15:44:04 +00:00
|
|
|
else()
|
|
|
|
set (BASE64_LIBRARY base64)
|
|
|
|
set (USE_BASE64 1)
|
|
|
|
endif()
|
2018-10-11 16:22:50 +00:00
|
|
|
|
2020-08-14 15:44:04 +00:00
|
|
|
if (NOT USE_BASE64)
|
|
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Cannot enable base64")
|
|
|
|
endif()
|