summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/Packager.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/Packager.cmake')
-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()