Deprecation of support for legacy CMake generators in Conan Center #17406
jcar87
announced in
Announcements
Replies: 1 comment
-
This is information is still relevant but an updated announcement can be found #19104 if there are any relevant questions :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With Conan 2.0 packages now starting to be populated, it’s time to continue looking to the future. The motivation behind this is to encourage the adoption of Conan 2.0 and move towards simplifying recipe and test_package logic.
The
cmake_find_package
orcmake_find_package_multi
generators were deprecated by the Conan client in favor of new generatorsCMakeToolchain
andCMakeDeps
- introduced with Conan 1.33. During the transition to new generators, we wanted have continued to ensure recipes were compatible with the legacy generators, in order to give users enough time to migrate. This was enabled by introducing atest_v1_package/
folder in recipes inconan-center-index
to ensure legacy generators were also tested on the consumer side.With Conan 2.0 being released,
CMakeToolchain
andCMakeDeps
are now stable, and they are also available for use in Conan 1.x. Today we are announcing that we will drop the need to test these generators in pull requests in Conan Center, by no longer enforcing the presence of atest_v1_package
. This will take effect on 15 May 2023.Key takeaways for recipe users
New recipes will not be required to have logic in their
package_info()
to support legacy CMake generators, nor will they be required to have atest_v1_package
folder.For existing recipes, you should expected the deprecated generators to gradually lose support over time, as after a certain date they will no longer be tested by our CI service.
Thus, in order to avoid disruption, we strongly advise to migrate to the new CMake generators, as well as follow the advice in ConanCenters “Consuming Recipes” Section in any case.
For recipe contributors
test_v1_package
, and are not required to add anything in thepackage_info()
method to support legacy generators.cpp_info.names
orcpp_info.filenames
frompackage_info()
or actively removetest_v1_package
in a way that it breaks support for these legacy generators. We do not intend to break any existing consumer using legacy generators, to avoid disruption.test_v1_package
folders fromconan-center-index
will be removed and will stop being tested. This will be done by the Conan Center maintainers with no action required from our contributors.Beta Was this translation helpful? Give feedback.
All reactions