Skip to content

[C++] CMake should collect libs when making static build #23764

@asfimport

Description

@asfimport

From https://github.com/apache/arrow/pull/6068/files#r360672071:

# Copy the bundled static libs from the build to the install dir
find . -regex .*/.*/lib/.*\\.a\$ | xargs -I{} cp -u {} ${DEST_DIR}/lib

I think that we should do this by CMake when -DARROW_BUILD_STATIC=ON is specified.
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/arrow/vendored/libXXX.a may be better for the installed path to avoid conflict.

Reporter: Neal Richardson / @nealrichardson
Assignee: Kouhei Sutou / @kou

Related issues:

Note: This issue was originally created as ARROW-7499. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions