From 472f3b734736347a6824780aa25a8119a843e05b Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Fri, 24 May 2019 18:29:29 +0300 Subject: [PATCH] Fix TBB debug --- cmake/OpenCVDetectTBB.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectTBB.cmake b/cmake/OpenCVDetectTBB.cmake index 403b446116..38137f44f0 100644 --- a/cmake/OpenCVDetectTBB.cmake +++ b/cmake/OpenCVDetectTBB.cmake @@ -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)