kabicm commented on issue #38583:
URL: https://github.com/apache/arrow/issues/38583#issuecomment-1801655650
Thanks Sutou for the response! I wasn't aware that ArrowConfig.cmake was
present instead.
Now I am using the following to find Arrow:
```
message(STATUS "Arrow installed here: " ${ARROW_ROOT}/install)
if (EXISTS "${ARROW_ROOT}/install/lib")
set(ARROW_LIBRARY_DIR "${ARROW_ROOT}/install/lib")
elseif (EXISTS "${ARROW_ROOT}/install/lib64")
set(ARROW_LIBRARY_DIR "${ARROW_ROOT}/install/lib64")
else ()
message(ERROR "Unable to find Arrow lib directory in
${ARROW_ROOT}/install")
endif ()
set(ARROW_INCLUDE_DIR "${ARROW_ROOT}/install/include")
message(STATUS "Arrow libs dir: " ${ARROW_LIBRARY_DIR})
message(STATUS "Arrow include dir: " ${ARROW_INCLUDE_DIR})
# add a path to ArrowConfig.cmake to CMAKE_PREFIX_PATH
list(APPEND CMAKE_PREFIX_PATH "${ARROW_LIBRARY_DIR}/cmake/Arrow")
list(APPEND CMAKE_PREFIX_PATH "${ARROW_LIBRARY_DIR}/cmake/ArrowTesting")
find_package(Arrow REQUIRED)
find_package(ArrowTesting REQUIRED)
```
Is it the proper way to include it in a cmake project?
Thank you for your help!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]