diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake index 9ef9436a18..d88826464a 100644 --- a/cmake/OpenCVPackaging.cmake +++ b/cmake/OpenCVPackaging.cmake @@ -68,6 +68,7 @@ set(CPACK_COMPONENT_TESTS_DISPLAY_NAME "Tests") #depencencies set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE) +set(CPACK_COMPONENT_LIBS_REQUIRED TRUE) set(CPACK_COMPONENT_SAMPLES_DEPENDS libs) set(CPACK_COMPONENT_DEV_DEPENDS libs) set(CPACK_COMPONENT_DOCS_DEPENDS libs)