-
Notifications
You must be signed in to change notification settings - Fork 988
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
make CppInfo an importable tool #14101
make CppInfo an importable tool #14101
Conversation
cpp_info.save(p) | ||
|
||
def package_info(self): | ||
cpp_info = CppInfo(self).load("cpp_info.json") |
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.
This test shows that the interface cannot be a class/static method like CppInfo.load()
as we typically do in the codebase, but it is loading on an already existing object (overwriting it)
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.
Nice!
Changelog: Feature: Make
CppInfo
a public, documented, importable tool for generators that need to aggregate them.Docs: conan-io/docs#3268
Close #13758 (#13758 (comment)), but:
Probably better wait. Conan 1.X uses
NewCppInfo
instead, so it is going to be challenging. Lets move forward with 2.0 only, and see what happens and user feedback.