Revision: 39581
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39581
Author:   campbellbarton
Date:     2011-08-21 11:06:49 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
new cmake doesn't consider CLang == GNUCC, set flags for clang explicitly.

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt        2011-08-21 10:32:15 UTC (rev 39580)
+++ trunk/blender/CMakeLists.txt        2011-08-21 11:06:49 UTC (rev 39581)
@@ -499,6 +499,9 @@
        # 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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to