Skip to content

Add packages without changing original source #255

Open
@matslil

Description

@matslil

Would it be possible to use CMAKE_TOOLCHAIN_FILE as a way to "patch" CMake projects? Apart from the usual work that a toolchain file needs to do, when adding external projects it could also:

  • Make sure HunterGate is initialised properly
  • Overload find_package(), so hunter_add_package() is called when appropriate

This would not solve all problems that forks solve, but might mean that fewer projects need to be forked.

Would this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions