[ 
https://issues.apache.org/jira/browse/ARROW-11836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17293719#comment-17293719
 ] 

Tao He commented on ARROW-11836:
--------------------------------

That could be fixed by either:

 
 # already creating the library `arrow_bundled_dependencies` when 
`ARROW_BUILD_STATIC=ON`, even creating an empty one.
 # or, don't requires it if not exists.

> Target libarrow_bundled_dependencies.a is not alreay created but is already 
> required.
> -------------------------------------------------------------------------------------
>
>                 Key: ARROW-11836
>                 URL: https://issues.apache.org/jira/browse/ARROW-11836
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 3.0.0
>            Reporter: Tao He
>            Priority: Major
>
> When ``-DARROW_BUILD_STATIC=ON``, all build dependencies built as static 
> libraries by the Arrow build system will be merged together to create a 
> static library ``arrow_bundled_dependencies``.
>   
>  But that is only true when there are indeed some dependencies, i.e., when 
> ``ARROW_BUNDLED_STATIC_LIBS`` is not empty [1]. It could be empty when we 
> just enable some of features when building arrow (e.g., just the arrow core).
>   
>  However the target is unconditionally required by the target 
> ``arrow_static`` [2]. That makes the staticly-built arrow libs cannot be used 
> with cmake.
>   
>  [1]: 
> [https://github.com/apache/arrow/blob/master/cpp/src/arrow/CMakeLists.txt#L523]
>  [2]: 
> [https://github.com/apache/arrow/blob/master/cpp/src/arrow/ArrowConfig.cmake.in#L74]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to