diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-01 10:16:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-02-01 10:16:50 +0000 |
commit | c00bc6fc2af9a54fe339f8d6a3ec1ab889c2931e (patch) | |
tree | 310460a90bcee82b05590849f2a213a0cca8b59a /cmake/Modules/Packager.cmake | |
parent | 107e05eab1d032b9ac741f88a3bec8e60b22efc9 (diff) | |
parent | 1dea17fe921e1f94db63e4c563fe08dd25734900 (diff) |
Merge "[HICN-10] Add support for building hicn-plugin packages. Do not build packages for components without name."
Diffstat (limited to 'cmake/Modules/Packager.cmake')
-rw-r--r-- | cmake/Modules/Packager.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/Modules/Packager.cmake b/cmake/Modules/Packager.cmake index c04e5c0b0..15b5951fa 100644 --- a/cmake/Modules/Packager.cmake +++ b/cmake/Modules/Packager.cmake @@ -82,6 +82,10 @@ macro(make_packages) set(CPACK_PACKAGE_VERSION "${deb_ver}") foreach(lc ${components}) + if (${lc} MATCHES "Unspecified.*") + continue() + endif() + string(TOUPPER ${lc} uc) set(CPACK_${type}_${uc}_FILE_NAME "${lc}_${deb_ver}_${arch}.deb") @@ -106,6 +110,10 @@ macro(make_packages) set(CPACK_PACKAGE_VERSION "${rpm_ver}") foreach(lc ${components}) + if (${lc} MATCHES "Unspecified.*") + continue() + endif() + string(TOUPPER ${lc} uc) set(CPACK_${type}_${uc}_DESCRIPTION "${${lc}_DESCRIPTION}") @@ -138,4 +146,4 @@ macro(make_packages) include(CPack) endif() endif() -endmacro()
\ No newline at end of file +endmacro() |