From 25983922955ab2fc388b292412243b3ee74022d0 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Wed, 6 May 2015 13:10:39 +0300 Subject: [PATCH] Added explicit deb package dependency from libtbb-dev if TBB is enabled. (cherry picked from commit 63d6cc5ca66c0627652021650b3f5c5cc608d7f5) --- cmake/OpenCVPackaging.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake index 3788b55..d02b1b7 100644 --- a/cmake/OpenCVPackaging.cmake +++ b/cmake/OpenCVPackaging.cmake @@ -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") -- 2.7.4