diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2012-11-29 16:22:07 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2012-11-29 16:22:07 +0400 |
commit | d387dcd1104ec822b19530ebca9b5347a0f31413 (patch) | |
tree | 29a69f67e82898d356d2bcc7a0fa947fe154141e /intern | |
parent | df4e1953ac4e71b2f31258079ab05d5ab7e77f3b (diff) |
Fix compile error with clang.
Patch by sambler via irc
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 2a1eddcec27..12829f15aed 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -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() |