This fixes a crash where newer TBB and newer OpenAL interact badly
and somehow end up crashing. CasparCG doesn't have much of a need
of tbbmalloc anyway.
if(MSVC)
set(TBB_LIBRARIES optimized tbb debug tbb_debug)
else()
- set(TBB_LIBRARIES tbb tbbmalloc tbbmalloc_proxy)
+ set(TBB_LIBRARIES tbb)
endif()
set(TBB_BIN_DIR "${DEPENDENCIES_FOLDER}/tbb/bin/${PLATFORM_FOLDER_NAME}")
link_directories("${DEPENDENCIES_FOLDER}/tbb/lib/${PLATFORM_FOLDER_NAME}")
target_link_libraries(common
"${ASMLIB_LIBRARIES}"
- "${TBB_LIBRARIES}"
+ tbb
"${GLEW_LIBRARIES}"
"${OPENGL_gl_LIBRARY}"
"${FREETYPE_LIBRARIES}"
else()
casparcg_add_runtime_dependency("${GLEW_BIN_DIR}/libGLEW.so.1.12")
casparcg_add_runtime_dependency("${TBB_BIN_DIR}/libtbb.so.2")
- casparcg_add_runtime_dependency("${TBB_BIN_DIR}/libtbbmalloc_proxy.so.2")
- casparcg_add_runtime_dependency("${TBB_BIN_DIR}/libtbbmalloc.so.2")
endif()
endif()