Francesco Borzi
Francesco Borzi

Reputation: 61984

Set CMake Ninja build output same format as Unix Makefiles

In my C++ app I use CLion as IDE and I have set it up like this.

I noticed that the Generator (under Settings->Build->CMake) has been changed to Ninja.

CLion cmake build conf

And the build output is no longer nice and descriptive (and warnings are no longer shown):

Ninja build output of AzerothCore

With the Unix Makefiles generator, it used to output like this:

Unix Makefiles build output of AzerothCore

Which is much nicer, showing more information and warnings.

Is there a way I can set the Ninja build output format the same as the one of Unix Makefiles?

Upvotes: 2

Views: 3060

Answers (1)

Alex Reinking
Alex Reinking

Reputation: 20016

... (and warnings are no longer shown) ... showing more information and warnings ...

Ninja absolutely does still show warnings when they appear.

Is there a way I can set the Ninja build output format the same as the one of Unix Makefiles?

No. However, the best you can do (short of patching Ninja) is this:

Add --verbose to the "Build options:" line entry item in that same settings dialog from your first picture to get line-by-line outputs in Ninja.

Upvotes: 2

Related Questions