Skip to content

[C++] Provide option to opt out of installing tests #44993

@h-vetinari

Description

@h-vetinari

Describe the enhancement requested

Since conda-forge/arrow-cpp-feedstock#1058, we have unintentionally been shipping the following in libarrow-all

lib/cmake/ArrowFlightTesting/ArrowFlightTestingConfig.cmake
lib/cmake/ArrowFlightTesting/ArrowFlightTestingConfigVersion.cmake
lib/cmake/ArrowFlightTesting/ArrowFlightTestingTargets-release.cmake
lib/cmake/ArrowFlightTesting/ArrowFlightTestingTargets.cmake
lib/cmake/ArrowTesting/ArrowTestingConfig.cmake
lib/cmake/ArrowTesting/ArrowTestingConfigVersion.cmake
lib/cmake/ArrowTesting/ArrowTestingTargets-release.cmake
lib/cmake/ArrowTesting/ArrowTestingTargets.cmake
lib/cmake/ArrowTesting/FindGTestAlt.cmake
lib/libarrow_flight_testing.so
lib/libarrow_flight_testing.so.1801
lib/libarrow_flight_testing.so.1801.0.0
lib/libarrow_testing.so
lib/libarrow_testing.so.1801
lib/libarrow_testing.so.1801.0.0
lib/pkgconfig/arrow-flight-testing.pc
lib/pkgconfig/arrow-testing.pc

I didn't check this more closely because my experience with other CMake projects is that tests don't get installed by default (but need a specific opt-in). It would be nice to have an ARROW_INSTALL_TESTS to go along with ARROW_BUILD_TESTS which controls whether these files get installed.

I care less about the choice of default for ARROW_INSTALL_TESTS (or whatever it ends up being called), though I think it should be set to False.

Component(s)

C++, Packaging

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions