The difference is that the Visual Studio generators support setting the platform (the platform functionality was designed specifically for Visual Studio), but the Ninja generators do not. I would suggest only setting CMAKE_GENERATOR_PLATFORM
when using Visual Studio.
1 Like