1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Cmake: add compiler option in a more idiomatic way

llvm-svn: 183995
This commit is contained in:
Arnaud A. de Grandmaison 2013-06-14 19:26:57 +00:00
parent f0afc10dda
commit 9aa8b92dda

View File

@ -268,8 +268,6 @@ add_llvm_definitions( -D__STDC_FORMAT_MACROS )
add_llvm_definitions( -D__STDC_LIMIT_MACROS )
# clang doesn't print colored diagnostics when invoked from Ninja
if (UNIX AND
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
CMAKE_GENERATOR STREQUAL "Ninja")
append("-fcolor-diagnostics" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja")
add_flag_if_supported("-fcolor-diagnostics")
endif()