summaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/pack.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmake/pack.cmake b/src/cmake/pack.cmake
index a89a90c452c..f4edecb956a 100644
--- a/src/cmake/pack.cmake
+++ b/src/cmake/pack.cmake
@@ -64,6 +64,11 @@ macro(add_vpp_packaging)
set(CPACK_${type}_PACKAGE_DESCRIPTION "${ARG_DESCRIPTION}")
set(CPACK_${type}_PACKAGE_RELEASE 1)
+ # Pure Debian does not set the "OS_ID_LIKE", it only sets "OS_ID"
+ if (OS_ID_LIKE MATCHES "")
+ set(OS_ID_LIKE "${OS_ID}")
+ endif()
+
if(OS_ID_LIKE MATCHES "debian")
set(CPACK_GENERATOR "DEB")
set(type "DEBIAN")