summaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/cmake/Modules/Packaging.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/cmake/Modules/Packaging.cmake')
-rw-r--r--ctrl/libhicnctrl/cmake/Modules/Packaging.cmake55
1 files changed, 39 insertions, 16 deletions
diff --git a/ctrl/libhicnctrl/cmake/Modules/Packaging.cmake b/ctrl/libhicnctrl/cmake/Modules/Packaging.cmake
index cbee25d35..92e9d4adb 100644
--- a/ctrl/libhicnctrl/cmake/Modules/Packaging.cmake
+++ b/ctrl/libhicnctrl/cmake/Modules/Packaging.cmake
@@ -25,22 +25,45 @@ set(${LIBHICNCTRL_COMPONENT}-dev_DESCRIPTION
CACHE STRING "Description for deb/rpm package."
)
-set(${LIBHICNCTRL_COMPONENT}_DEB_DEPENDENCIES
- ""
- CACHE STRING "Dependencies for deb/rpm package."
-)
+if (BUILD_HICNPLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
+ set(${LIBHICNCTRL_COMPONENT}_DEB_DEPENDENCIES
+ ""
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
-set(${LIBHICNCTRL_COMPONENT}-dev_DEB_DEPENDENCIES
- "${LIBHICNCTRL_COMPONENT} (>= stable_version)"
- CACHE STRING "Dependencies for deb/rpm package."
-)
+ set(${LIBHICNCTRL_COMPONENT}-dev_DEB_DEPENDENCIES
+ "${LIBHICNCTRL_COMPONENT} (>= stable_version), hicn-plugin-dev (>= stable_version-release), hicn-plugin-dev (<< next_version-release)"
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
-set(${LIBHICNCTRL_COMPONENT}_RPM_DEPENDENCIES
- ""
- CACHE STRING "Dependencies for deb/rpm package."
-)
+ set(${LIBHICNCTRL_COMPONENT}_RPM_DEPENDENCIES
+ ""
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
+
+ set(${LIBHICNCTRL_COMPONENT}-dev_RPM_DEPENDENCIES
+ "${LIBHICNCTRL_COMPONENT} >= stable_version, hicn-plugin-dev >= stable_version-release, hicn-plugin-dev < next_version-release"
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
-set(${LIBHICNCTRL_COMPONENT}-dev_RPM_DEPENDENCIES
- "${LIBHICNCTRL_COMPONENT} >= stable_version"
- CACHE STRING "Dependencies for deb/rpm package."
-) \ No newline at end of file
+else ()
+ set(${LIBHICNCTRL_COMPONENT}_DEB_DEPENDENCIES
+ ""
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
+
+ set(${LIBHICNCTRL_COMPONENT}-dev_DEB_DEPENDENCIES
+ "${LIBHICNCTRL_COMPONENT} (>= stable_version)"
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
+
+ set(${LIBHICNCTRL_COMPONENT}_RPM_DEPENDENCIES
+ ""
+ CACHE STRING "Dependencies for deb/rpm package."
+ )
+
+ set(${LIBHICNCTRL_COMPONENT}-dev_RPM_DEPENDENCIES
+ "${LIBHICNCTRL_COMPONENT} >= stable_version"
+ CACHE STRING "Dependencies for deb/rpm package."
+)
+endif() \ No newline at end of file