diff options
-rw-r--r-- | intern/cycles/blender/CMakeLists.txt | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt index ff109da979f..08599f789f4 100644 --- a/intern/cycles/blender/CMakeLists.txt +++ b/intern/cycles/blender/CMakeLists.txt @@ -49,12 +49,9 @@ add_definitions(-DGLEW_STATIC) blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}") -if(APPLE) - # avoid link failure with clang 3.4 debug - if(${CMAKE_GENERATOR} MATCHES "Xcode" AND ${XCODE_VERSION} VERSION_GREATER 5.0) - # -gline-tables-only - set_target_properties(bf_intern_cycles PROPERTIES XCODE_ATTRIBUTE_CLANG_DEBUG_INFORMATION_LEVEL "line-tables-only") - endif() +# avoid link failure with clang 3.4 debug +if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4') + add_definitions(-gline-tables-only) endif() add_dependencies(bf_intern_cycles bf_rna) |