kou commented on issue #15139:
URL: https://github.com/apache/arrow/issues/15139#issuecomment-1368281043
Could you try the following for bzip2?
```diff
diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake
b/cpp/cmake_modules/ThirdpartyToolchain.cmake
index d0c8c600d5..c93c6a534d 100644
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -2546,9 +2546,17 @@ macro(build_bzip2)
endmacro()
if(ARROW_WITH_BZ2)
- resolve_dependency(BZip2)
- if(${BZip2_SOURCE} STREQUAL "SYSTEM")
- string(APPEND ARROW_PC_LIBS_PRIVATE " ${BZIP2_LIBRARIES}")
+ resolve_dependency(BZip2 PC_PACKAGE_NAMES bzip2)
+ if(${BZip2_SOURCE} STREQUAL "SYSTEM" AND NOT bzip2_PC_FOUND)
+ if(BZIP2_LIBRARY_RELEASE)
+ string(APPEND ARROW_PC_LIBS_PRIVATE " ${BZIP2_LIBRARY_RELEASE}")
+ elseif(BZIP2_LIBRARY_DEBUG)
+ string(APPEND ARROW_PC_LIBS_PRIVATE " ${BZIP2_LIBRARY_DEBUG}")
+ elseif(BZIP2_LIBRARY)
+ string(APPEND ARROW_PC_LIBS_PRIVATE " ${BZIP2_LIBRARY}")
+ else()
+ string(APPEND ARROW_PC_LIBS_PRIVATE " ${BZIP2_LIBRARIES}")
+ endif()
endif()
if(NOT TARGET BZip2::BZip2)
```
--
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]