From bebee3fb60987a4132fe488c5a179b3509ee64c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 21 Aug 2011 11:06:49 +0000 Subject: [PATCH] new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf083b87bc7..0cdf1fb9da9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -499,6 +499,9 @@ if(UNIX AND NOT APPLE) # GNU Compiler if(CMAKE_COMPILER_IS_GNUCC) set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing") + # CLang is the same as GCC for now. + elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing") # Intel C++ Compiler elseif(CMAKE_C_COMPILER_ID MATCHES "Intel") # think these next two are broken