-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ORC-1810: [C++] Add environment variable ORC_FORMAT_URL #2094
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,8 @@ option(ORC_PREFER_STATIC_LZ4 "Prefer static lz4 library, if available" | |
option(ORC_PREFER_STATIC_ZSTD "Prefer static zstd library, if available" ON) | ||
option(ORC_PREFER_STATIC_ZLIB "Prefer static zlib library, if available" ON) | ||
option(ORC_PREFER_STATIC_GMOCK "Prefer static gmock library, if available" ON) | ||
|
||
set(DEFAULT_ORC_FORMAT_URL "https://www.apache.org/dyn/closer.lua/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz?action=download") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about moving it to below line 139? |
||
set(ORC_FORMAT_URL ${DEFAULT_ORC_FORMAT_URL} CACHE STRING "URL from which to download ORC format library" FORCE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about using environment variable?
|
||
# zstd requires us to add the threads | ||
FIND_PACKAGE(Threads REQUIRED) | ||
|
||
|
@@ -136,8 +137,9 @@ endfunction() | |
|
||
# ---------------------------------------------------------------------- | ||
# ORC Format | ||
message(STATUS "Using ORC_FORMAT_URL: ${ORC_FORMAT_URL}") | ||
ExternalProject_Add (orc-format_ep | ||
URL "https://www.apache.org/dyn/closer.lua/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz?action=download" | ||
URL ${ORC_FORMAT_URL} | ||
URL_HASH SHA256=739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. User provided URL may not match the |
||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to revert this needless change.