new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 21 Aug 2011 11:06:49 +0000 (11:06 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 21 Aug 2011 11:06:49 +0000 (11:06 +0000)
CMakeLists.txt

index cf083b8..0cdf1fb 100644 (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