[PATCH] Even through the file name has "Unpecified" in it, let the control file and thus the installed package name not have the -unspecified extension

Kishore Jonnalagadda kishore.jonnalagadda at gmail.com
Thu Nov 10 09:48:06 EST 2011


---
 Modules/CPackDeb.cmake |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Modules/CPackDeb.cmake b/Modules/CPackDeb.cmake
index 26433bb..06076f7 100644
--- a/Modules/CPackDeb.cmake
+++ b/Modules/CPackDeb.cmake
@@ -321,7 +321,9 @@ IF(CPACK_DEB_PACKAGE_COMPONENT)
   SET(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "-${CPACK_DEB_PACKAGE_COMPONENT}")
   SET(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "/${CPACK_DEB_PACKAGE_COMPONENT}")
   SET(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/${CPACK_DEB_PACKAGE_COMPONENT}")
-  STRING(TOLOWER "${CPACK_PACKAGE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_NAME}" CPACK_DEBIAN_PACKAGE_NAME)
+  IF(NOT CPACK_DEB_PACKAGE_COMPONENT STREQUAL "Unspecified")
+    STRING(TOLOWER "${CPACK_PACKAGE_NAME}${CPACK_DEB_PACKAGE_COMPONENT_PART_NAME}" CPACK_DEBIAN_PACKAGE_NAME)
+  ENDIF(NOT CPACK_DEB_PACKAGE_COMPONENT STREQUAL "Unspecified")
 ELSE(CPACK_DEB_PACKAGE_COMPONENT)
   SET(CPACK_DEB_PACKAGE_COMPONENT_PART_NAME "")
   SET(CPACK_DEB_PACKAGE_COMPONENT_PART_PATH "")
-- 
1.7.5.4


--nextPart2203481.eg5j1LCA10--



More information about the CMake mailing list