kou commented on PR #47148: URL: https://github.com/apache/arrow/pull/47148#issuecomment-3099956656
It seems that apache-orc-dev 2.0.3 on Alpine Linux 3.20 and 3.21 don't provide `orcConfig.cmake`. (apache-orc-dev on Alpine Linux 3.22 provides it.) How about the following as workaround? ```diff diff --git a/cpp/cmake_modules/FindorcAlt.cmake b/cpp/cmake_modules/FindorcAlt.cmake index ce8cd11b4c..406f186a48 100644 --- a/cpp/cmake_modules/FindorcAlt.cmake +++ b/cpp/cmake_modules/FindorcAlt.cmake @@ -66,10 +66,25 @@ find_package_handle_standard_args( if(orcAlt_FOUND) if(NOT TARGET orc::orc) + # For old Apache Orc. For example, apache-orc 2.0.3 on Alpine + # Linux 3.20 and 3.21. add_library(orc::orc STATIC IMPORTED) set_target_properties(orc::orc PROPERTIES IMPORTED_LOCATION "${ORC_STATIC_LIB}" INTERFACE_INCLUDE_DIRECTORIES "${ORC_INCLUDE_DIR}") + if(ARROW_WITH_LZ4 AND TARGET LZ4::lz4) + target_link_libraries(orc::orc INTERFACE LZ4::lz4) + endif() + if(ARROW_WITH_SNAPPY AND TARGET Snappy::snappy) + target_link_libraries(orc::orc INTERFACE Snappy::snappy) + endif() + if(ARROW_WITH_ZSTD) + if(TARGET zstd::libzstd_shared) + target_link_libraries(orc::orc INTERFACE zstd::libzstd_shared) + elseif(TARGET zstd::libzstd_static) + target_link_libraries(orc::orc INTERFACE zstd::libzstd_static) + endif() + endif() endif() set(orcAlt_VERSION ${ORC_VERSION}) endif() ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org