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

Cache variables declaration in CMakeToolchain #11503

Merged

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Jun 22, 2022

Changelog: Feature: Added CMakeToolchain(self).cache_variables to declare cache_variables in the configurePresets in the CMakePresets.json file. Conan reads them to call cmake with -D when using the CMake(self) build helper. These cache variables doesn't support multi-configuration generators.
Docs: conan-io/docs#2611

Close #11476

@lasote lasote added this to the 1.50 milestone Jun 22, 2022
@lasote lasote changed the title Implementation + test Cache variables declaration in CMakeToolchain Jun 22, 2022
@lasote lasote marked this pull request as ready for review June 22, 2022 11:25
Co-authored-by: Francisco Ramírez <franchuti688@gmail.com>
@franramirez688 franramirez688 merged commit a5eab30 into conan-io:develop Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] CMakeToolchain: declare cacheVariable to be stored in CMakePresets
3 participants