forked from bartvdbraak/blender
Extend workaround to all OS :avoid link failure with clang 3.4 debug
This commit is contained in:
parent
29f359c975
commit
03d053da4c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user