diff options
author | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2013-06-14 19:26:57 +0000 |
---|---|---|
committer | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2013-06-14 19:26:57 +0000 |
commit | 4ebf543b933d282f51b6f00d02db7f7b52d56575 (patch) | |
tree | 85f243330ee027ea7d3cc46c9abcfdb6b503fe67 /cmake | |
parent | dafd1a63119dc55af71c4582148ce72d573cdea6 (diff) | |
download | external_llvm-4ebf543b933d282f51b6f00d02db7f7b52d56575.zip external_llvm-4ebf543b933d282f51b6f00d02db7f7b52d56575.tar.gz external_llvm-4ebf543b933d282f51b6f00d02db7f7b52d56575.tar.bz2 |
Cmake: add compiler option in a more idiomatic way
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 2939fa2..b336324 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -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() |