diff options
author | Elvis Angelaccio <elvis.angelaccio@kde.org> | 2016-12-29 12:18:55 +0100 |
---|---|---|
committer | Elvis Angelaccio <elvis.angelaccio@kde.org> | 2016-12-29 12:18:55 +0100 |
commit | dc525a42ae70a68d67aa49d6453d4b6de4ecb561 (patch) | |
tree | e1a77e90805e753ce95e9a2b878aede7fd3a8ae0 /kde-modules/KDEFrameworkCompilerSettings.cmake | |
parent | c0a047a20591a50d87899d7869fea55268156f79 (diff) | |
download | extra-cmake-modules-dc525a42ae70a68d67aa49d6453d4b6de4ecb561.tar.gz extra-cmake-modules-dc525a42ae70a68d67aa49d6453d4b6de4ecb561.tar.bz2 |
Enable colored warnings in ninja's output
Summary:
Colored compiler warnings in ninja output only work with the
`-fdiagnostics-color=always` flag.
See https://github.com/ninja-build/ninja/issues/814 for a rationale.
This commit adds such flag in ecm for gcc >= 4.9 and clang >= 3.5,
and only if the CMAKE_GENERATOR is Ninja.
Test Plan: ninja+gcc and ninja+clang now show nice colored compiler warnings.
Reviewers: #frameworks
Differential Revision: https://phabricator.kde.org/D3733
Diffstat (limited to 'kde-modules/KDEFrameworkCompilerSettings.cmake')
0 files changed, 0 insertions, 0 deletions