kou opened a new issue, #55583:
URL: https://github.com/apache/arrow/issues/55583

   ### Describe the enhancement requested
   
   `arrow_create_merged_static_lib()` creates `arrow_bundled_dependencies` as 
an `IMPORTED` library. We can't use `install(TARGETS)` for it. So we install 
only the archive by `install(FILES)` and create 
`Arrow::arrow_bundled_dependencies` manually in `ArrowConfig.cmake`.
   
   So `ArrowConfig.cmake` needs to do things that CMake usually does for us:
   
   
https://github.com/apache/arrow/blob/dd619adc4fd5fbaef71cc8e82c9a8e27c4b52b1b/cpp/src/arrow/ArrowConfig.cmake.in#L113-L157
   
   We know everything about the bundled dependencies at build time. We should 
define `arrow_bundled_dependencies` as a normal (not `IMPORTED`) static library 
target with its dependencies and export it by `install(TARGETS ... EXPORT 
...)`. Then we can remove the code that creates 
`Arrow::arrow_bundled_dependencies` from `ArrowConfig.cmake`. Each bundled 
dependency can declare the libraries it needs where we build it in 
`ThirdpartyToolchain.cmake`. We can do the same for 
`arrow_gcs_bundled_dependencies`.
   
   
   ### Component(s)
   
   C++


-- 
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]

Reply via email to