CMake uses the wrong Visual Studio version

I have no idea if -g is accepted.

The documentation is '-G`

https://cmake.org/cmake/help/latest/manual/cmake.1.html?highlight=cmake%20cli#options