Skip to content

Commit bba33c9

Browse files
luffy-zhdongjoon-hyun
authored andcommitted
ORC-1810: [C++] Add environment variable ORC_FORMAT_URL
### What changes were proposed in this pull request? Add an CMake option ORC_FORMAT_URL to indicate where to download the orc-format_ep ### Why are the changes needed? Handle the issue discussed apache/arrow#43417 ### How was this patch tested? Test it locally ### Was this patch authored or co-authored using generative AI tooling? NO Closes #2094 from luffy-zh/ORC-1810. Authored-by: luffy-zh <zhnice@outlook.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 90b3740 commit bba33c9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,15 @@ endfunction()
136136

137137
# ----------------------------------------------------------------------
138138
# ORC Format
139+
if(DEFINED ENV{ORC_FORMAT_URL})
140+
set(ORC_FORMAT_SOURCE_URL "$ENV{ORC_FORMAT_URL}")
141+
message(STATUS "Using ORC_FORMAT_URL: ${ORC_FORMAT_SOURCE_URL}")
142+
else()
143+
set(ORC_FORMAT_SOURCE_URL "https://www.apache.org/dyn/closer.lua/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz?action=download" )
144+
message(STATUS "Using DEFAULT URL: ${ORC_FORMAT_SOURCE_URL}")
145+
endif()
139146
ExternalProject_Add (orc-format_ep
140-
URL "https://www.apache.org/dyn/closer.lua/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz?action=download"
147+
URL ${ORC_FORMAT_SOURCE_URL}
141148
URL_HASH SHA256=739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5
142149
CONFIGURE_COMMAND ""
143150
BUILD_COMMAND ""

0 commit comments

Comments
 (0)