Conan 2 Migration [extra Quality]
Always use both: conan install . -pr:b=default -pr:h=my_host_profile . 4. Build System Integrations
The deploy() method is replaced by the new feature. conan 2 migration
: Use CMakeToolchain and CMakeDeps. These generate CMakePresets.json files, allowing IDEs like VS Code and CLion to work natively with Conan-provided dependencies. Always use both: conan install
[settings] os=macOS os.version=11.0 compiler=apple-clang compiler.version=13.0 compiler.libcxx=libc++ Build System Integrations The deploy() method is replaced
: Replace from conans import ... with from conan import ... (note the singular "conan").
In Conan 1, you might have used requires = "Boost/1.80" . In Conan 2, while that still works in simple cases, the preferred method is inside the requirements() method using self.requires("Boost/1.80") . This allows for options (like self.requires("OpenSSL/1.1.1", options="shared": True) ).
This content is current as of Conan 2.6. Always check the official docs for latest changes.