-
Notifications
You must be signed in to change notification settings - Fork 364
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
[question] How do you use conan.tools.cmake.CMake with conanbuildinfo.cmake? #2359
Comments
Hi @jkleve They are completely different integrations. The |
That was my incline. I think I've read quite a bit of the documentation and this wasn't clear to me. We should mark the old |
Moving this to the "docs" repo.
This is not easy to do in production code, because that is the declared "stable" integration, so we cannot pollute it with warnings or anything, because users will complain. So it needs to be a docs thing (which is also in a bad place at the moment, we know, because it is not easy to swap the old by new without breaking somethings, because for example all recipes in ConanCenter still uses the old integrations) |
We can go ahead and close this if you'd like. It's documented in code. |
I set up my cmake project to include conanbuildinfo.cmake and do the basic setup. There's a lot of useful stuff in there so I'd like to keep using it. I switched from conans.CMake to conan.tools.cmake.CMake and now when I try to create the package I get:
So my question is why is the
cmake
generator forbidden withconan.tools.cmake.CMake
?See cmake.py:13
The text was updated successfully, but these errors were encountered: