Please add version to cpp_info. This would be useful for modeling the rare case where library version and versioning in the build-system file are not the same. For example in freetype the versioning used in the pkg-cfg file is not the same as the versioning of the library.
Apparently this already works (e.g. xorg/system) though not documented.
@daravi
Can you reopen this?
Setting the version is currently possible on component level, but not on generator level.
See also https://github.com/conan-io/conan-center-index/pull/3874
libsystemd needs to set a particular version for the pkg_config generator.
Yes, this is in our plans. We are starting to think about a comprehensive and more systematic way to check information from dependencies. I am marking this as Conan 2.0, but it is likely that we will introduce it earlier in Conan 1.X to enable a non-breaking transition for Conan 2.0.
Most helpful comment
Yes, this is in our plans. We are starting to think about a comprehensive and more systematic way to check information from dependencies. I am marking this as Conan 2.0, but it is likely that we will introduce it earlier in Conan 1.X to enable a non-breaking transition for Conan 2.0.