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

feat(fetch): add option NO_DEFAULT_PATH for find_package when generating file pkg.dep.cmake #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

genshen
Copy link
Owner

@genshen genshen commented Dec 28, 2023

If NO_DEFAULT_PATH option is not added, cmake may search paths out of the project directories, which may find a wrong lib version for linking. By adding this option to find_package, we can tell cmake to search lib in project's vendor directory to avoid the above issue.

…ating file pkg.dep.cmake

If `NO_DEFAULT_PATH` option is not added, cmake may search paths out of the project directories,
which may find a wrong lib version for linking. By adding this option to `find_package`, we can
tell cmake to search lib in project's `vendor` directory to avoid the above issue.
Instead of directly adding `NO_DEFAULT_PATH` to the cmake generating template, we now add a new cli
flag `find-package-arg` with a default value (the default value is `NO_DEFAULT_PATH`). This strategy
can be more flexible.
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

Successfully merging this pull request may close these issues.

None yet

1 participant