aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-04-30 00:19:25 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-04-29 22:20:17 +0000
commite8a980e1bc33adacb763066dc263f447656cb351 (patch)
tree21a4a57ed383757a1a665bbebd82f68c15f1e74d
parentfbcf0d957d90cf5ab969de3bb8a6dc74327205e4 (diff)
Fixing dependencies
Change-Id: I5bacdc30c2c3aa8ebb629d1cb33c60dd71ac3d4e Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--CMakeLists.txt6
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 ()