Skip to content
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

docs: when to use CMakeToolchain's variable choices #13971

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/v2_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ When different build tools are use, at least one layout needs to be set.
The `src_folder` must be the same when using different layouts and should
not depend on settings or options.

## CMakeToolchain

The old `CMake.definition` should be replaced by `CMakeToolchain.variables` and move to the `generate` method.
However, there are two main cases to use `cache_variables`:

- When a definition is configured before project()
- When an option uses CACHE. Need to check project's CMakeLists.txt
prince-chrismc marked this conversation as resolved.
Show resolved Hide resolved

For more information refere to the [CMakeToolchain docs](https://docs.conan.io/en/latest/reference/conanfile/tools/cmake/cmaketoolchain.html)
or check out the converstaion in conan-io/conan#11937 for the brave.

## New conf_info properties

As described in the documentation `self.user_info` has been depreated and you are now required to use
Expand Down