-
Notifications
You must be signed in to change notification settings - Fork 364
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
Documentation for components and cmake_find_package generator #1722
Documentation for components and cmake_find_package generator #1722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know some of these comments are for the PR to the client itself... regarding this one, I think these are the places that need to be modified 👍
Target in Find<PKG-NAME>.cmake | ||
------------------------------ | ||
Components | ||
++++++++++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect previous variables (<PKG-NAME>_INCLUDE_DIRS
, <PKG-NAME>_SYSTEM_LIBS
,...) to be available too, so "if using components these variables will be added to the ones listed before:":
Trying new components feature, seems like I miss some detail. Also I've created a conan recipe conanfile.py. I defined qt in requirements:
In package_info I use components:
On build I have error:
I assume I miss some detail. I would appreciate any advice or reference to read about. |
There is an example here https://docs.conan.io/en/latest/reference/conanfile/attributes.html#cpp-info
In your case, if you want a component to depend on the whole
Please try that and let me know if it works. Thanks for trying this new feature! |
Thank you! It did help! |
Docs for conan-io/conan#7108