Skip to content

Commit

Permalink
Fix TBB debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed May 27, 2019
1 parent 898cf70 commit 472f3b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/OpenCVDetectTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ function(ocv_tbb_env_guess _found)
add_library(tbb UNKNOWN IMPORTED)
set_target_properties(tbb PROPERTIES
IMPORTED_LOCATION "${TBB_ENV_LIB}"
IMPORTED_LOCATION_DEBUG "${TBB_ENV_LIB_DEBUG}"
INTERFACE_INCLUDE_DIRECTORIES "${TBB_ENV_INCLUDE}"
)
if (TBB_ENV_LIB_DEBUG)
set_target_properties(tbb PROPERTIES
IMPORTED_LOCATION_DEBUG "${TBB_ENV_LIB_DEBUG}"
)
endif()
# workaround: system TBB library is used for linking instead of provided
if(CV_GCC)
get_filename_component(_dir "${TBB_ENV_LIB}" DIRECTORY)
Expand Down

0 comments on commit 472f3b7

Please sign in to comment.