• Manolis Stamatogiannakis's avatar
    Fix compile error with external TBB and -DBUILD_SHARED_LIBS=OFF. · ef16e420
    Manolis Stamatogiannakis authored
    Adds IMPORTED for the TBB::tbb alias target as otherwise cmake produces
    the following error:
    
    CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_core" which requires target "tbb" that is not in the export set.
    
    This problem occurs with the defaults used by homebrew on macOS, which
    compiles both static and shared versions of TBB and OpenCV.
    ef16e420
OpenCVDetectTBB.cmake 3.81 KB