Wes McKinney created ARROW-9412:
-----------------------------------
Summary: [C++] Add non-BUNDLED dependencies to exported
INSTALL_INTERFACE_LIBS of arrow_static and test that it works
Key: ARROW-9412
URL: https://issues.apache.org/jira/browse/ARROW-9412
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Wes McKinney
As a companion project to ARROW-7605, we must document and test a workflow for
statically linking with external static dependencies.
When a dependency is not built as BUNDLED, it can be added to
"ARROW_STATIC_INSTALL_INTERFACE_LIBS" so that it's included in
ArrowTargets-*.cmake. The third party project of course must configure the
dependent CMake targets
Prior to the patch for ARROW-7605, toolchain libraries were added
unconditionally to ARROW_STATIC_INSTALL_INTERFACE_LIBS whether BUNDLED or not
(including our private jemalloc), creating a broken CMake "arrow_static"
target. So this patch is to partially revert these changes to enable static
linking with external toolchain libraries without breaking the BUNDLED static
builds. Finally, this must be tested similar to
cpp/examples/minimal_build/run_static.sh so that we can verify that each of the
build/link scenarios are working correctly
--
This message was sent by Atlassian Jira
(v8.3.4#803005)