Skip to content

Commit

Permalink
apacheGH-37510: [C++] Don't install bundled Azure SDK for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 10, 2023
1 parent 72bfe49 commit 672a524
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5072,6 +5072,8 @@ endif()
function(build_azure_sdk)
message(STATUS "Building Azure SDK for C++ from source")
fetchcontent_declare(azure_sdk
# EXCLUDE_FROM_ALL is available since CMake 3.28
EXCLUDE_FROM_ALL TRUE
URL ${ARROW_AZURE_SDK_URL}
URL_HASH "SHA256=${ARROW_AZURE_SDK_BUILD_SHA256_CHECKSUM}")
prepare_fetchcontent()
Expand All @@ -5084,6 +5086,9 @@ function(build_azure_sdk)
set(ENV{AZURE_SDK_DISABLE_AUTO_VCPKG} TRUE)
set(WARNINGS_AS_ERRORS FALSE)
fetchcontent_makeavailable(azure_sdk)
if(CMAKE_VERSION VERSION_LESS 3.28)
set_property(DIRECTORY ${azure_sdk_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL TRUE)
endif()
set(AZURE_SDK_VENDORED
TRUE
PARENT_SCOPE)
Expand Down

0 comments on commit 672a524

Please sign in to comment.