diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-21 15:06:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-21 15:06:49 +0400 |
commit | bebee3fb60987a4132fe488c5a179b3509ee64c1 (patch) | |
tree | a69bb283dd38f11a6bf438d12b05a5ae480fc435 /CMakeLists.txt | |
parent | 8fcc8dd776d20d51d0e76a5cb0028c052b9dbfc3 (diff) |
new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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 |