We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94e1126 + eced4dd commit 674ecc5Copy full SHA for 674ecc5
cmake/OpenCVDetectTBB.cmake
@@ -82,6 +82,11 @@ function(ocv_tbb_env_guess _found)
82
set_target_properties(tbb PROPERTIES INTERFACE_LINK_LIBRARIES "-L${_dir}")
83
endif()
84
ocv_tbb_read_version("${TBB_ENV_INCLUDE}" tbb)
85
+ if(NOT (TBB_INTERFACE_VERSION LESS 12000)) # >= 12000, oneTBB 2021+
86
+ # avoid "defaultlib" requirement of tbb12.lib (we are using absolute path to 'tbb.lib' only)
87
+ # https://github.com/oneapi-src/oneTBB/blame/2dba2072869a189b9fdab3ffa431d3ea49059a19/include/oneapi/tbb/detail/_config.h#L334
88
+ target_compile_definitions(tbb INTERFACE "__TBB_NO_IMPLICIT_LINKAGE=1")
89
+ endif()
90
message(STATUS "Found TBB (env): ${TBB_ENV_LIB}")
91
set(${_found} TRUE PARENT_SCOPE)
92
0 commit comments