[CMake] Colored diagnostic output for GCC 4.9 through Ninja

Dan Kegel dank at kegel.com
Wed Oct 28 10:11:00 EDT 2015


On Wed, Oct 28, 2015 at 6:43 AM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> I'm using CMake + Ninja against GCC 4.9 in the Android NDK. I'm on
> Windows, invoking 'ninja' through CMD.exe.
>
> I do not see colored output for diagnostics (errors, warnings, etc)
> GCC gives. Is there something in CMake I need to configure to enable
> colored output?

Try adding -fdiagnostics-color=always to the compiler options.


More information about the CMake mailing list