Switch CMake Generator to Ninja

The default CMake build generator is operating system dependent. In general many projects can benefit from increased build speed and especially rebuild speed of Ninja. To switch the default build generator on any platform, set environment variable CMAKE_GENERATOR

CMAKE_GENERATOR=Ninja

Ninja can be downloaded or:

pip install ninja

Conan

If using Conan Package Manager, tell Conan to use Ninja by setting environment variable

CONAN_CMAKE_GENERATOR=Ninja