Skip to content

CMake.configure() extra args, via CMakePresets - #19639

Merged
czoido merged 5 commits into
conan-io:develop2from
memsharded:feature/cmake_configure_extra_args
Mar 23, 2026
Merged

czoido merged 5 commits into
conan-io:develop2from
memsharded:feature/cmake_configure_extra_args

Conversation

@memsharded

@memsharded memsharded commented Feb 19, 2026

Copy link
Copy Markdown
Member

Changelog: Feature: Feature: New tools.cmake:configure_args configuration to inject arbitrary arguments into the CMake configure step via the command line, allowing users to inject CMake variables and arguments such as --fresh.
Docs: conan-io/docs#4404

Close #19613
Close #19209

Maybe the name is not the best, and cache_variables is to be used instead, as configure_args would be something more for things like --fresh, but it shouldn't probably go to CMakePresets.json

@franramirez688 franramirez688 added this to the 2.27.0 milestone Mar 3, 2026
Comment thread conan/internal/model/conf.py Outdated
@memsharded

Copy link
Copy Markdown
Member Author

This PR is waiting a bit for @jasal82 feedback from #19613

@memsharded
memsharded marked this pull request as ready for review March 13, 2026 11:21
@czoido
czoido merged commit 733d56c into conan-io:develop2 Mar 23, 2026
16 checks passed
@memsharded
memsharded deleted the feature/cmake_configure_extra_args branch March 23, 2026 14:57
memsharded added a commit to memsharded/conan that referenced this pull request Apr 22, 2026
* CMake.configure() extra args, via CMakePresets

* review

* improve conf description
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] Conf to inject cache variables in CMakeToolchain [feature] Conf that forces clean of CMake cache

3 participants