You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that several packages in the Conan Center Index expose "dummy" targets or pkg-config files with names that include things like "do_not_use". For example, openmpi, hdf5 and pybind11.
This leads to rather confusing recommendations on the Conan Center page :)
I am doing a PR with some tests here: #17817, to understand better if this was just legacy for Conan 1, but it seems this is still necessary to be able to control the creation of the expected .pc files from components.
But it also seems that it might not be necessary in some of those cases. Need to check this with the team.
Allowing None for self.cpp_info.set_target_property("pkg_config_name", None) would be one obvious solution here, in a sense, but since this will break all consuming recipes that don't specify self.cpp_info.requires or use the aggregate target anyway, I think that by far the best solution would be a way to mark one of the components as the default one to be used instead of the aggregate one.
This PR is to explore these possibilities, yes.
It might be challenging to do without breaking indeed, so we will see, but lets try to have a look at this.
What is your question?
Hi, I noticed that several packages in the Conan Center Index expose "dummy" targets or pkg-config files with names that include things like "do_not_use". For example, openmpi, hdf5 and pybind11.
This leads to rather confusing recommendations on the Conan Center page :)
Is there any way to avoid these "dummy" targets?
Here's a quick list of packages that have "do-not-use" in their cppinfo:
https://github.com/search?q=do-not-use+OR+do_not_use+repo%3Aconan-io%2Fconan-center-index+language%3APython&type=code&ref=advsearch
And here's a related issue about accidentally linking to
pybind11_all_do_not_use
: conan-io/conan-center-index#25685Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: