Skip to content

[feature] tools.cmake.cmaketoolchain:conan_preset_file #15639

@mpusz

Description

@mpusz

What is your suggestion?

As described in https://docs.conan.io/2/examples/tools/cmake/cmake_toolchain/extend_own_cmake_presets.html Conan provides the means to specify a custom presets file name that can be later on included by the custom CMakeUserPresets.cmake. This, however, requires having and changing a conanfile.py to provide this functionality.

A current behavior has many limitations:

  • will not work with conanfile.txt
  • a need to change the external project's conanfile.py to get this behavior
  • a need to update several projects in the corporation when we want to achieve the same consistent behavior among projects
  • does not allow customizing per specific repository (the same project in different locations may have different use cases and often, the default behavior would work just fine)

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions