2021-12-01 10:02:45 +00:00
|
|
|
option(USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY
|
|
|
|
"Set to FALSE to use system Azure SDK instead of bundled (OFF currently not implemented)"
|
2021-12-15 18:31:55 +00:00
|
|
|
${ENABLE_LIBRARIES})
|
2021-09-27 09:31:27 +00:00
|
|
|
|
|
|
|
if (USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY)
|
|
|
|
set(USE_AZURE_BLOB_STORAGE 1)
|
|
|
|
set(AZURE_BLOB_STORAGE_LIBRARY azure_sdk)
|
|
|
|
endif()
|
|
|
|
|
2021-12-01 10:02:45 +00:00
|
|
|
if ((NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/azure/sdk"
|
|
|
|
OR NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/azure/cmake-modules")
|
|
|
|
AND USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY)
|
|
|
|
message (WARNING "submodule contrib/azure is missing. to fix try run: \n git submodule update --init")
|
|
|
|
set(USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY OFF)
|
|
|
|
set(USE_AZURE_BLOB_STORAGE 0)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_SSL_LIBRARY AND USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY)
|
|
|
|
message (FATAL_ERROR "Currently Blob Storage support can be built only with internal SSL library")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_CURL AND USE_INTERNAL_AZURE_BLOB_STORAGE_LIBRARY)
|
|
|
|
message (FATAL_ERROR "Currently Blob Storage support can be built only with internal curl library")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (USE_AZURE_BLOB_STORAGE)
|
|
|
|
message (STATUS "Using Azure Blob Storage - ${USE_AZURE_BLOB_STORAGE}")
|
2021-12-01 14:34:38 +00:00
|
|
|
endif()
|