Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-03-20 15:38:45 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-03-20 15:38:58 +0400
commit03d053da4cf36d17d59434da0d17252411356554 (patch)
tree303cdcf63686b14e2bc7d133af3c5233ad21f804 /intern/cycles/blender/CMakeLists.txt
parent29f359c975c8c9ea44d0e6a79c6f903bfc803863 (diff)
Extend workaround to all OS :avoid link failure with clang 3.4 debug
Diffstat (limited to 'intern/cycles/blender/CMakeLists.txt')
-rw-r--r--intern/cycles/blender/CMakeLists.txt9
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)