new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly.

This commit is contained in:
Campbell Barton 2011-08-21 11:06:49 +00:00
parent 8fcc8dd776
commit bebee3fb60
1 changed files with 3 additions and 0 deletions

View File

@ -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