feature request: export applied CMake options in a portable way: CMakePresets
Currently, the only way to find out resulting CMake options actually used to generate the project build system is to check it's build log.
Obviously, it's not very robust approach, as it's neither machine-readable nor portable.
Furthermore, it creates difficulties importing existing build trees built with kdesrc-build to IDEs.
To address these problems, it's suggested to dump the actual CMake options/env variables/etc. used at configure stage to a CMakeUserPresets.json
file in the projects root directories.
That would allow to share this information with IDEs in a portable way.
I don't have much of Python coding experience so I doubt if I could implement it myself, but I guess following approach might be used:
https://stackoverflow.com/questions/12309269/how-do-i-write-json-data-to-a-file