File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,11 @@ function(ocv_tbb_env_guess _found)
85
85
if (NOT (TBB_INTERFACE_VERSION LESS 12000 )) # >= 12000, oneTBB 2021+
86
86
# avoid "defaultlib" requirement of tbb12.lib (we are using absolute path to 'tbb.lib' only)
87
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" )
88
+ if (NOT (CMAKE_VERSION VERSION_LESS "3.16.0" )) # https://gitlab.kitware.com/cmake/cmake/-/issues/19434
89
+ target_compile_definitions (tbb INTERFACE "__TBB_NO_IMPLICIT_LINKAGE=1" )
90
+ else ()
91
+ set_target_properties (tbb PROPERTIES INTERFACE_COMPILE_OPTIONS "__TBB_NO_IMPLICIT_LINKAGE=1" )
92
+ endif ()
89
93
endif ()
90
94
message (STATUS "Found TBB (env): ${TBB_ENV_LIB} " )
91
95
set (${_found} TRUE PARENT_SCOPE )
You can’t perform that action at this time.
0 commit comments