Revision: 52657
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52657
Author:   genscher
Date:     2012-11-29 12:22:07 +0000 (Thu, 29 Nov 2012)
Log Message:
-----------
Fix compile error with clang.

Patch by sambler via irc

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

Modified: trunk/blender/intern/cycles/CMakeLists.txt
===================================================================
--- trunk/blender/intern/cycles/CMakeLists.txt  2012-11-29 10:28:06 UTC (rev 
52656)
+++ trunk/blender/intern/cycles/CMakeLists.txt  2012-11-29 12:22:07 UTC (rev 
52657)
@@ -23,7 +23,7 @@
 # for OSL
 if(WIN32 AND MSVC)
        set(RTTI_DISABLE_FLAGS "/GR- -DBOOST_NO_RTTI -DBOOST_NO_TYPEID")
-elseif(CMAKE_COMPILER_IS_GNUCC)
+elseif(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
        set(RTTI_DISABLE_FLAGS "-fno-rtti -DBOOST_NO_RTTI -DBOOST_NO_TYPEID")
 endif()
 

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to