-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Recently, I found that Conan decided to deprecate "cmake-conan" in Conan 2.X. For example, in this article of the blog:
The biggest drawback is you need to call
conan installbeforecmake ... This sounds innocent at first but if you rely on third party tools that support cmake you no longer have thecmake-wrapperto call conan for you. The way CMake designed the toolchain support is that it needs to be preset at configuration before the project is declared.Conan will no longer get its settings from CMake, rather Conan will convert its settings to CMake which you will need to pass explicitly.
Therefore, I want to confirm that:
The main reason is all about the "Chicken-And-Egg" problem which @memsharded mentioned in this issue that I posted before: #410 (comment)
In any case the
conan_toolchain.cmakeis mostly there to try go guarantee that your CMake configuration follows the Conan settings. As the goal of cmake-conan is the opposite, to obtain the Conan settings from the current CMake configuration, that renders theconan_toolchain.cmakemostly useles, because it should largely contain what is somewhat already defined in the current CMake run.
Am I correct?