mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
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.
This commit is contained in:
parent
5e93c82023
commit
a56d7592f0
@ -45,7 +45,7 @@ function(ocv_tbb_env_guess _found)
|
||||
find_library(TBB_ENV_LIB NAMES "tbb")
|
||||
find_library(TBB_ENV_LIB_DEBUG NAMES "tbb_debug" PATHS ENV LIBRARY_PATH ENV LD_LIBRARY_PATH NO_DEFAULT_PATH)
|
||||
find_library(TBB_ENV_LIB_DEBUG NAMES "tbb_debug")
|
||||
if (TBB_ENV_INCLUDE AND TBB_ENV_LIB)
|
||||
if (TBB_ENV_INCLUDE AND (TBB_ENV_LIB OR TBB_ENV_LIB_DEBUG))
|
||||
ocv_tbb_verify()
|
||||
ocv_tbb_read_version("${TBB_ENV_INCLUDE}")
|
||||
add_library(tbb UNKNOWN IMPORTED)
|
||||
|
Loading…
Reference in New Issue
Block a user