You do not need to attempt a build with CMake.
Also, that's kind of the point of mentioning Ninja. Inherently, anything that uses Ninja is in the same boat and doesn't need to start a build.
The only thing I know that uses Ninja is CMake and I'm sure CMake does not require Ninja to generate the database.
The only thing I know that uses Ninja is CMake and I'm sure CMake does not require Ninja to generate the database.