Skip to content

Commit a56d759

Browse files
committed
TBB Debug Release
OpenCV fails to detect tbb on a debug build if the platform has only installed debug libraries. This PR adds an additional check to the tbb detect logic for systems that only install tbb debug and not both tbb debug and release.
1 parent 5e93c82 commit a56d759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/OpenCVDetectTBB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function(ocv_tbb_env_guess _found)
4545
find_library(TBB_ENV_LIB NAMES "tbb")
4646
find_library(TBB_ENV_LIB_DEBUG NAMES "tbb_debug" PATHS ENV LIBRARY_PATH ENV LD_LIBRARY_PATH NO_DEFAULT_PATH)
4747
find_library(TBB_ENV_LIB_DEBUG NAMES "tbb_debug")
48-
if (TBB_ENV_INCLUDE AND TBB_ENV_LIB)
48+
if (TBB_ENV_INCLUDE AND (TBB_ENV_LIB OR TBB_ENV_LIB_DEBUG))
4949
ocv_tbb_verify()
5050
ocv_tbb_read_version("${TBB_ENV_INCLUDE}")
5151
add_library(tbb UNKNOWN IMPORTED)

0 commit comments

Comments
 (0)