we will still get the defaults for the cpp_info.bindirs / cpp_info.libdirs / cpp_info.includedirs,
I think when a component is being declared, the default values should be removed and set by the aggregation of the components data.
I can see at least 2 use cases when it's required:
when using deployers, and we want to copy all bins to deployment folder, we would not want to distinguish between components package or single library package.
when linking to the entire package - for example in cmake target_link_directories(MyTarget PRIVATE SomeSdk::SomeSdk)
What is your question?
Hi
When defining package layout, the cpp_info object is getting some default values (unless overridden). for example:
def package_info(self):
now, let's assume that we have components package, and assume that we have different layout for each component:
def package_info(self):
we will still get the defaults for the cpp_info.bindirs / cpp_info.libdirs / cpp_info.includedirs, I think when a component is being declared, the default values should be removed and set by the aggregation of the components data.
I can see at least 2 use cases when it's required:
target_link_directories(MyTarget PRIVATE SomeSdk::SomeSdk)
What do you think?
Have you read the CONTRIBUTING guide?