Added explicit deb package dependency from libtbb-dev if TBB is enabled.

(cherry picked from commit 63d6cc5ca6)
This commit is contained in:
Alexander Smorkalov 2015-05-06 13:10:39 +03:00
parent 17cc5e2c40
commit 2598392295

View File

@ -104,6 +104,14 @@ if(HAVE_CUDA)
endif()
endif()
if(HAVE_TBB AND NOT BUILD_TBB)
if(CPACK_DEB_DEV_PACKAGE_DEPENDS)
set(CPACK_DEB_DEV_PACKAGE_DEPENDS "${CPACK_DEB_DEV_PACKAGE_DEPENDS}, libtbb-dev")
else()
set(CPACK_DEB_DEV_PACKAGE_DEPENDS "libtbb-dev")
endif()
endif()
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
set(CPACK_COMPONENT_LIBS_DESCRIPTION "Open Computer Vision Library")
set(CPACK_DEBIAN_COMPONENT_LIBS_NAME "libopencv")