Skip to content

Commit 8b40c59

Browse files
author
Denis Chapligin
authored
Merge pull request #5784 from OgreTransporter/bugfix-cmaketbb-5782
Bugfix TBB linking #5782
2 parents 909570f + 9c3eeff commit 8b40c59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ else()
535535

536536
find_package(TBB REQUIRED)
537537
add_dependency_includes(${TBB_INCLUDE_DIR})
538-
if(WIN32 AND CMAKE_BUILD_TYPE MATCHES Debug)
539-
set(TBB_LIBRARIES ${TBB_DEBUG_LIBRARIES})
538+
if(WIN32)
539+
set(TBB_LIBRARIES optimized ${TBB_LIBRARY} optimized ${TBB_MALLOC_LIBRARY} debug ${TBB_LIBRARY_DEBUG} debug ${TBB_MALLOC_LIBRARY_DEBUG})
540540
endif()
541541

542542
find_package(EXPAT REQUIRED)

0 commit comments

Comments
 (0)