How do I set the compiler version for Visual Studio generator with cmake presets

I think you’re getting bitten by a change made in Visual Studio starting with the 14.36 toolset. See the following issue for details:

https://gitlab.kitware.com/cmake/cmake/-/issues/25192