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

CPMLicense Should Silently Ignore Packags with empty source directories #7

Open
Jacobfaib opened this issue Nov 15, 2024 · 0 comments

Comments

@Jacobfaib
Copy link

Jacobfaib commented Nov 15, 2024

The generated target ends up executing:

$ cmake \
  -DPRINT_license_FILE_NAME=/path/to/licenses.txt \ 
  -DPRINT_license_PACKAGES="...;CURL;..." \
  ... \
  -DCURL_SOURCE_DIR=""

And emits a warning:

WARNING: no license files found for package "CURL" in  .

IMO, the target should simply not emit a warning in this cases. CURL has come from a pre-existing system installation, so it won't have a source dir, and therefore no LICENSE to emit?

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