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

This commit is contained in:
Alexander Smorkalov 2015-05-06 13:10:39 +03:00
parent 90c3d7d361
commit 63d6cc5ca6

View File

@ -104,6 +104,14 @@ if(HAVE_CUDA)
endif() endif()
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) if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
set(CPACK_COMPONENT_LIBS_DESCRIPTION "Open Computer Vision Library") set(CPACK_COMPONENT_LIBS_DESCRIPTION "Open Computer Vision Library")
set(CPACK_DEBIAN_COMPONENT_LIBS_NAME "libopencv") set(CPACK_DEBIAN_COMPONENT_LIBS_NAME "libopencv")