diff options
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index da9bbc37..7d243842 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,13 +78,15 @@ if (DEB_PACKAGE) set(TYPE "DEBIAN") set(GENERATOR "DEB") set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NAME}_${PACKAGE_VERSION}_${ARCHITECTURE}") - set(CPACK_${TYPE}_PACKAGE_DEPENDS "longbow (>= 1.0), libevent-2.0-5, libssl1.0.0, libparc (>= 1.0), libccnx-common (>= 1.0), libboost-system-dev (>= 1.53), libboost-regex-dev (>= 1.53), libboost-filesystem-dev (>= 1.53), libicnet (>= 1.0)") + set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) + set(CPACK_${TYPE}_PACKAGE_DEPENDS "libicnet (>= 1.0)") elseif (RPM_PACKAGE) set(TYPE "RPM") set(GENERATOR "RPM") set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NAME}-${PACKAGE_VERSION}.${ARCHITECTURE}") set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/etc" "/usr/lib/python2.7" "/usr/lib/python2.7/site-packages") - set(CPACK_${TYPE}_PACKAGE_REQUIRES "longbow >= 1.0, libevent >= 2.0, openssl >= 1.0, libparc >= 1.0, libccnx-common >= 1.0, boost-system >= 1.53, boost-regex >= 1.53, boost-filesystem >= 1.53, libicnet >= 1.0") + set(CPACK_${TYPE}_PACKAGE_AUTOREQ ON) + set(CPACK_${TYPE}_PACKAGE_REQUIRES "boost-system >= 1.53, boost-regex >= 1.53, boost-filesystem >= 1.53, libicnet >= 1.0") else () return() endif () |