cmake 3.14, ubunto 20.04: Generator Ninja does not support platform specification, but platform x64 was specified.

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