Closed PauloCarvalhoRJ closed 3 weeks ago
Hi @PauloCarvalhoRJ
The replacement is a transparent integration: CMakeDeps
and CMakeToolchain
can work without having to have anything Conan related in the CMakeLists.txt
.
You might learn about this integration nicely in https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html, it is the Conan 2 docs, but the CMakeDeps/CMakeToolchain
works the same in Conan 1.X
Thank you, @memsharded . So, that was a great improvement in Conan 2, since we no longer need Canan code in CMake scripts as the build can be done without Conan too.
Thanks again for your time.
Thanks to you for the feedback!
conanbuildinfo.cmake
replacement in Conan 2?Hello,
I am migrating from Conan 1 to Conan 2 and I have some
CMakeLists.txt
s in my packages with code like this:I understand that this is Conan 1 boilerplate. However, Conan 2 is not generating
conanbuildinfo.cmake
before calling CMake when I do aconan create
, so CMake aborts with aninclude could not find requested file
error. What is the current protocol using CMake with Conan 2? I mean what changes should I do to theseCMakeLists.txt
s so they are compliant with Conan 2? The migration guide (https://docs.conan.io/1/migrating_to_2.0/recipes.html) does not present anything related to changes necessary to CMake config scripts.Thank you in advance,
Paulo
Have you read the CONTRIBUTING guide?