[llvm] r183995 - Cmake: add compiler option in a more idiomatic way
Arnaud A. de Grandmaison
arnaud.adegm at gmail.com
Fri Jun 14 12:26:58 PDT 2013
Author: aadg
Date: Fri Jun 14 14:26:57 2013
New Revision: 183995
URL: http://llvm.org/viewvc/llvm-project?rev=183995&view=rev
Log:
Cmake: add compiler option in a more idiomatic way
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=183995&r1=183994&r2=183995&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Fri Jun 14 14:26:57 2013
@@ -268,8 +268,6 @@ add_llvm_definitions( -D__STDC_FORMAT_MA
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()
More information about the llvm-commits
mailing list