Added fix for issue with TBB library finding (with Richard)

release/4.3a0
Alex Cunningham 2013-08-06 17:50:45 +00:00
parent e1991ff49c
commit 69d87d2de3
1 changed files with 10 additions and 6 deletions

View File

@ -166,12 +166,16 @@ set(ENV{TBB_TARGET_ARCH} intel64)
set(ENV{TBB_TARGET_VS} vc11)
find_package(TBB REQUIRED)
set(TBB_LIBS "")
foreach(lib ${TBB_LIBRARIES})
if(TBB_DEBUG_LIBRARIES)
foreach(lib ${TBB_LIBRARIES})
list(APPEND TBB_LIBS optimized "${lib}")
endforeach()
foreach(lib ${TBB_DEBUG_LIBRARIES})
endforeach()
foreach(lib ${TBB_DEBUG_LIBRARIES})
list(APPEND TBB_LIBS debug "${lib}")
endforeach()
endforeach()
else()
set(TBB_LIBS ${TBB_LIBRARIES})
endif()
###############################################################################