From 67fc520ab8833ed4c27a4cdf4eb7f93b7ef55904 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Thu, 13 Mar 2014 11:06:43 +0100 Subject: Cmake: fix compile problem after own commit --- intern/cycles/blender/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'intern/cycles/blender') diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt index 265c433aae8..8aeaa9b491b 100644 --- a/intern/cycles/blender/CMakeLists.txt +++ b/intern/cycles/blender/CMakeLists.txt @@ -49,8 +49,10 @@ add_definitions(-DGLEW_STATIC) blender_add_lib(bf_intern_cycles "${SRC}" "${INC}" "${INC_SYS}") -if(${CMAKE_GENERATOR} MATCHES "Xcode" AND "${XCODE_VERSION}" VERSION_GREATER 5.0) # avoid link failure with clang 3.4 debug - SET_TARGET_PROPERTIES(bf_intern_cycles PROPERTIES XCODE_ATTRIBUTE_CLANG_DEBUG_INFORMATION_LEVEL "line-tables-only") # -gline-tables-only +if(APPLE) + if(${CMAKE_GENERATOR} MATCHES "Xcode" AND ${XCODE_VERSION} VERSION_GREATER 5.0) # avoid link failure with clang 3.4 debug + SET_TARGET_PROPERTIES(bf_intern_cycles PROPERTIES XCODE_ATTRIBUTE_CLANG_DEBUG_INFORMATION_LEVEL "line-tables-only") # -gline-tables-only + endif() endif() add_dependencies(bf_intern_cycles bf_rna) -- cgit v1.2.3