raulcd commented on PR #43417:
URL: https://github.com/apache/arrow/pull/43417#issuecomment-2250591077
I am unsure why ORC is failing to build when calling
`fetchcontent_makeavailable(orc)` with:
```
CMake Error at
/tmp/arrow-build/_deps/orc-src/cmake_modules/ThirdpartyToolchain.cmake:467
(elseif):
given arguments:
"ORC_PREFER_STATIC_PROTOBUF" "AND"
Unknown arguments specified
Call Stack (most recent call first):
/tmp/arrow-build/_deps/orc-src/CMakeLists.txt:166 (INCLUDE)
```
I can see we define (since https://github.com/apache/arrow/pull/43011):
```
set(ORC_PREFER_STATIC_PROTOBUF
OFF
CACHE BOOL "" FORCE)
```
debugging locally I can see we use ORC `2.0.1` and the failure is coming
from:
```
if (ORC_PACKAGE_KIND STREQUAL "conan")
target_link_libraries (orc_protobuf INTERFACE ${protobuf_LIBRARIES})
elseif (ORC_PREFER_STATIC_PROTOBUF AND ${PROTOBUF_STATIC_LIB})
target_link_libraries (orc_protobuf INTERFACE ${PROTOBUF_STATIC_LIB})
else ()
target_link_libraries (orc_protobuf INTERFACE ${PROTOBUF_LIBRARY})
endif()
```
@kou any idea why fetchcontent building ORC might not see the defined
`ORC_PREFER_STATIC_PROTOBUF`?
--
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]