cloudflare/ClickHouse
Publicmirrored fromhttps://github.com/cloudflare/ClickHouse
cmake/find_base64.cmake
18lines · modecode
7 years ago
| 1 | if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/base64/lib/lib.c") |
| 2 | set (MISSING_INTERNAL_BASE64_LIBRARY 1) |
| 3 | message (WARNING "submodule contrib/base64 is missing. to fix try run: \n git submodule update --init --recursive") |
| 4 | endif () |
| 5 | |
| 6 | if (NOT MISSING_INTERNAL_BASE64_LIBRARY) |
| 7 | option (ENABLE_BASE64 "Enable base64" ON) |
| 8 | endif () |
| 9 | |
| 10 | if (ENABLE_BASE64) |
| 11 | if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/base64") |
| 12 | message (WARNING "submodule contrib/base64 is missing. to fix try run: \n git submodule update --init --recursive") |
| 13 | else() |
| 14 | set (BASE64_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/base64/include) |
| 15 | set (BASE64_LIBRARY base64) |
| 16 | set (USE_BASE64 1) |
| 17 | endif() |
| 18 | endif () |