Skip to content

Include rather than find_package makes eventual shared reuse harder #301

@steve-downey

Description

@steve-downey

exemplar/CMakeLists.txt

Lines 27 to 28 in ddfe5ba

# for find of beman-install-library
include(infra/cmake/beman-install-library-config.cmake)

Making this an include with a path, rather than a find_package and setting the module path, means that we can't easily re-use the infra package once it stabilizes. It must be in tree and infra merged in for a package to get any shared benefits.

Having the infra directory in tree is a tradeoff to allow looser coupling without the problems of submodules, and for a project to use and propose changes to the infra facilities. But scaling the reuse means using infra by a package, not by vendoring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions