Skip to content

[Feature Request] Support an optional dependency #644

@blozano-tt

Description

@blozano-tt

We are facing a scenario where we have private repos that not all users would have access to.

Could CPM support a scenario where a dependency is declared, but not error out if the source is unreachable?

Something like:

CPMTryAddPackage(
  NAME optionalThing
)

if(optionalThing_Added)
  list(APPEND myTargets optionalThing::optionalThing)
endif()

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