[feature request] --preset should look for CMakeUserPresets.json in current working dirctory
The current handling of preset prevents Conan+CMake from working with out-of-source builds. Since out-of-source builds are required (and recommended) for many projects, this causes friction and prevents CMake and Conan from playing together nicely.
This is the respective issue over at Conan: https://github.com/conan-io/conan/issues/15179
Proposed solution:
If no CMakeUserPresets.json
is found in $SRCDIR, look in the current working directory (which typically is the build dir). This would allow Conan to place its CMakeUserPresets.json
there instead of the SRCDIR.
Thank you!