This commit is contained in:
bubnikv 2019-10-17 19:10:50 +02:00
commit b7af51fd6d

View File

@ -261,6 +261,10 @@ if(NOT TBB_FOUND)
set(TBB_LIBRARIES "${TBB_LIBRARIES_${TBB_BUILD_TYPE}}") set(TBB_LIBRARIES "${TBB_LIBRARIES_${TBB_BUILD_TYPE}}")
endif() endif()
if(NOT MSVC AND NOT TBB_LIBRARIES)
set(TBB_LIBRARIES ${TBB_LIBRARIES_RELEASE})
endif()
if (MSVC AND TBB_STATIC) if (MSVC AND TBB_STATIC)
set(TBB_DEFINITIONS __TBB_NO_IMPLICIT_LINKAGE) set(TBB_DEFINITIONS __TBB_NO_IMPLICIT_LINKAGE)
endif () endif ()