JSON support in cmake language
In my opinion, parsing and producing JSON during configuration time would enable CMake to support some pretty neat use-cases, including:
- Community provided CMake modules for using various package managers. This is the primary use case in my mind, as this would make it possible to decouple the build systems and package managers from each other. (Also note, that at my company we don't use a package manager, simply because our build system is a mess and integrating any one of them is neigh impossible)
- Produce some meta informations during configuration/packaging/installation time, as part of the build system or via the already available hooks (
install(<CODE|SCRIPT> ...)
,CPACK_EXTERNAL_PACKAGE_SCRIPT
, etc...)
Also, I often find myself in constrained build environment where the only CMake is available, in these environments it would be extremely helpful to have a JSON parser without having to produce one as part of the build process.