diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-15 12:26:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-15 12:26:16 +0400 |
commit | 02ba328ca8a4f606deaed531274b93ed7aa8ea6f (patch) | |
tree | a3e4f60af858f8a7d706b6a5a0d6c8c94892b313 /build_files | |
parent | c0b28134cb2a19147f2aaa8e22b16487f0183506 (diff) |
clang/cmake - quiet warnings for external libs and reference moto as a system include.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/macros.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 109d9244b3a..854609f1665 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -530,7 +530,9 @@ macro(remove_strict_flags_file foreach(_SOURCE ${ARGV}) - if(CMAKE_COMPILER_IS_GNUCC) + if(CMAKE_COMPILER_IS_GNUCC OR + (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + set_source_files_properties(${_SOURCE} PROPERTIES COMPILE_FLAGS "${CC_REMOVE_STRICT_FLAGS}" |