From daff2a06745c6c41999a8e0a565ee2cb6971b090 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 14 Jul 2014 23:58:05 +0400 Subject: [PATCH] More accurate deb package build fix for CUDA 6.5 and newer. (cherry picked from commit b2790973a32eb662c165a921afe03dbfd2c65269) (cherry picked from commit f8758da289c092fcce10baa4723d6388c4e41cb3) --- cmake/OpenCVPackaging.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake index 65e6c13..22dbf6b 100644 --- a/cmake/OpenCVPackaging.cmake +++ b/cmake/OpenCVPackaging.cmake @@ -68,7 +68,7 @@ set(CPACK_COMPONENT_tests_DEPENDS libs) if(HAVE_CUDA) string(REPLACE "." "-" cuda_version_suffix ${CUDA_VERSION}) - if(${CUDA_VERSION} VERSION_LESS "6.5") + if(CUDA_VERSION VERSION_LESS "6.5") set(CPACK_DEB_libs_PACKAGE_DEPENDS "cuda-core-libs-${cuda_version_suffix}, cuda-extra-libs-${cuda_version_suffix}") set(CPACK_DEB_dev_PACKAGE_DEPENDS "cuda-headers-${cuda_version_suffix}") else() @@ -83,8 +83,8 @@ if(HAVE_CUDA) set(CPACK_DEB_dev_PACKAGE_DEPENDS "${CPACK_DEB_dev_PACKAGE_DEPENDS}, cuda-cublas-dev-${cuda_version_suffix}") endif() endif() - set(CPACK_COMPONENT_dev_DEPENDS libs) + set(CPACK_COMPONENT_dev_DEPENDS libs) endif() if(NOT OPENCV_CUSTOM_PACKAGE_INFO) -- 2.7.4