Skip to content

[BUG] find_package code paths fail to return status #610

@osayamenja

Description

@osayamenja

Bug

Set CPM_USE_LOCAL_PACKAGES and call CPMAddPackage(...) for a local package, this path gets called, but after return() all the exported env variables are lost and are not available in the parent scope.

PROPAGATE is one way to address this.

Asks

  1. If you call CPMFindPackage(...), no status-like variables such as FOUND or ADDED are returned. It would be nice to maintain the same functionality as CPMAddPackage by returning those status variables.
  2. I get warnings about CMP0144 when using CPM, can we set this policy?

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