Visual Studio supports creating a CMakeSettings.json
file to keep cmake configurations when opening a CMake project, as described here.
This works perfectly well within the IDE itself, but if I want to automate my builds I cannot re-use the same CMakeSettings.json
file, I have to either parse it, then send the values to CMake with -DFOO=parsed_value
or keep two seperate build configurations (risking the error of them not being in sync).
The IDE must internally do this parsing anyway before it calls CMake so does anyone know if this build step is accessible outside the IDE?