-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
build: Add support for find_package(Arrow REQUIRED)
#12599
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for meta-velox canceled.
|
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.
Thanks for the clean up!
a26e9f8
to
09b06c0
Compare
set(Arrow_FOUND false) | ||
return() | ||
endif() | ||
add_library(thrift ALIAS thrift::thrift) |
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.
Oh, sorry. I should not have removed this. I'll revert this change.
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.
Done.
09b06c0
to
917b3fb
Compare
In this PR, I didn't remove any function. Should I rebase on main? |
Yes I think that should fix it |
The current `CMake/FindArrow.cmake` ignores `REQUIRED` argument in `find_package(Arrow REQUIRED)`. If `-DArrow_SOURCE=SYSTEM` is specified but system Arrow isn't found, `FindArrow.cmake` finishes without an error. With this change, `-DArrow_SOURCE=SYSTEM` and no system Arrow reports an error. `find_package_handle_standard_args()` is a standard function provided by CMake to handle `REQUIRED`: https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html Our other `FindXXX.cmake`s also use it.
917b3fb
to
9dd1dc6
Compare
OK. I've rebased. |
The current
CMake/FindArrow.cmake
ignoresREQUIRED
argument infind_package(Arrow REQUIRED)
. If-DArrow_SOURCE=SYSTEM
isspecified but system Arrow isn't found,
FindArrow.cmake
finisheswithout an error.
With this change,
-DArrow_SOURCE=SYSTEM
and no system Arrow reportsan error.
find_package_handle_standard_args()
is a standard function providedby CMake to handle
REQUIRED
:https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
Our other
FindXXX.cmake
s also use it.