Deb package build fix for CUDA 6.5 and newer.
(cherry picked from commite650d87e47
) (cherry picked from commitca9c52ac97
)
This commit is contained in:
parent
946c09f58c
commit
ad5c2de97c
@ -68,9 +68,23 @@ set(CPACK_COMPONENT_tests_DEPENDS libs)
|
|||||||
|
|
||||||
if(HAVE_CUDA)
|
if(HAVE_CUDA)
|
||||||
string(REPLACE "." "-" cuda_version_suffix ${CUDA_VERSION})
|
string(REPLACE "." "-" cuda_version_suffix ${CUDA_VERSION})
|
||||||
set(CPACK_DEB_libs_PACKAGE_DEPENDS "cuda-core-libs-${cuda_version_suffix}, cuda-extra-libs-${cuda_version_suffix}")
|
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()
|
||||||
|
set(CPACK_DEB_libs_PACKAGE_DEPENDS "cuda-cudart-${cuda_version_suffix}, cuda-npp-${cuda_version_suffix}")
|
||||||
|
set(CPACK_DEB_dev_PACKAGE_DEPENDS "cuda-cudart-dev-${cuda_version_suffix}, cuda-npp-dev-${cuda_version_suffix}")
|
||||||
|
if(HAVE_CUFFT)
|
||||||
|
set(CPACK_DEB_libs_PACKAGE_DEPENDS "${CPACK_DEB_libs_PACKAGE_DEPENDS}, cuda-cufft-${cuda_version_suffix}")
|
||||||
|
set(CPACK_DEB_dev_PACKAGE_DEPENDS "${CPACK_DEB_dev_PACKAGE_DEPENDS}, cuda-cufft-dev-${cuda_version_suffix}")
|
||||||
|
endif()
|
||||||
|
if(HAVE_HAVE_CUBLAS)
|
||||||
|
set(CPACK_DEB_libs_PACKAGE_DEPENDS "${CPACK_DEB_libs_PACKAGE_DEPENDS}, cuda-cublas-${cuda_version_suffix}")
|
||||||
|
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)
|
||||||
set(CPACK_DEB_dev_PACKAGE_DEPENDS "cuda-headers-${cuda_version_suffix}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
|
||||||
|
Loading…
Reference in New Issue
Block a user