-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[develop2] My migration experience from conan.cmake to conan_provider.cmake #676
Comments
Hi again @tbeu Thanks for your feedback.
Looks good, totally valid.
This is not possible. Specially, doing this after
yes, CMake dependency providers only exist in modern CMake>=3.24, update is necessary to work
This is not really necessary for new Conan installations, installing latest Conan will already define the right remote. For existing installations, the recommended approach is to do the
I think it is because the incorrect injection of the dependency provider. If the provider is correctly injected you should see all the Please let us know how it goes. |
Thanks @memsharded for the fast reply. I now understand that cmake-conan for Conan 2.X approach is completely orthogonal to Conan 1.X dependency resolution. I adapted tbeu/matio@master...migrate_to_conan_2 accordingly to still keep Conan 1.X approach alive, but marked as deprecated. I needed to downgrade minimum CMake version requirement again, since OpenBSD VM only has CMake 3.21 installed and I cannot force it as a hard requirement just for one possible way of dependency resolution. Basically, it is working as expected, however only the default options are used. If I set Thanks again. |
Edit: By providing a profile file via However, |
Thanks for the feedback.
Yes, this is expected at the moment (though we are working to improve this). The thing is that So when running from We are doing a completely new |
Thanks for clarification of the limitation. I guess I need to revisit the migration once Conan 2.10 is released and cmake-conan adopted to the new injection. Feel free to close this issue then. Thanks again! |
Just an update that the new CMakeDeps is now in the 2.10 release in "incubating" stage, see https://docs.conan.io/2/incubating.html. We will be testing it here in I am keeping this ticket open until this works with the new generator, thanks for the feedback! |
I did not succeed when trying to work on my technical dept to migrate from Conan 1.x to 2.x. Here's what I did:
conan_add_remote
no longer is availabe via CMake.Thanks for your support! Any advice is appreciated.
The text was updated successfully, but these errors were encountered: