Fix compile error with clang.
authorDaniel Genrich <daniel.genrich@gmx.net>
Thu, 29 Nov 2012 12:22:07 +0000 (12:22 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Thu, 29 Nov 2012 12:22:07 +0000 (12:22 +0000)
Patch by sambler via irc

intern/cycles/CMakeLists.txt

index 2a1eddcec27a72b26ff69f739b714a93a2d5d887..12829f15aedfa2b10af4f8b9f088cd214bd57b20 100644 (file)
@@ -23,7 +23,7 @@ endif()
 # 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()