Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
osayamenja opened this issue Oct 10, 2024 · 0 comments
Open

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

osayamenja opened this issue Oct 10, 2024 · 0 comments

Comments

@osayamenja
Copy link

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant