Conan: [feature] Add self.cpp_info.version["generator鈥漖

Created on 13 Dec 2020  路  3Comments  路  Source: conan-io/conan

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.

feature

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uilianries picture uilianries  路  3Comments

theodelrieu picture theodelrieu  路  3Comments

omicronns picture omicronns  路  3Comments

uilianries picture uilianries  路  3Comments

liberforce picture liberforce  路  3Comments