summaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-02-01 09:40:26 +0000
committerMauro Sardara <msardara@cisco.com>2019-02-01 09:59:01 +0000
commit1dea17fe921e1f94db63e4c563fe08dd25734900 (patch)
tree2875c75d595643c549e0dbb50235ae27a8a68090 /cmake/Modules
parentc793ea85f8375013abaf2c6fb43347f935558276 (diff)
[HICN-10] Add support for building hicn-plugin packages. Do not build packages for components without name.
Change-Id: I11eff1b9dc6e71e079baf65703192a7cbfb565e8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/Packager.cmake10
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()