summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-10-30 14:16:43 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-10-30 14:16:43 (GMT)
commit09c49cf65826493d0e40ea22d9d30177d1eec93e (patch)
tree4c5bbeeaffacc49074caab9d5330f548e14e2492 /Modules
parentec79fff8624766b3f1c3752c68f87241b6cfe083 (diff)
downloadCMake-09c49cf65826493d0e40ea22d9d30177d1eec93e.zip
CMake-09c49cf65826493d0e40ea22d9d30177d1eec93e.tar.gz
CMake-09c49cf65826493d0e40ea22d9d30177d1eec93e.tar.bz2
ENH: use cpack generic variable if rpm one is not set
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CPackRPM.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index c6335b6..917f6750 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -98,7 +98,11 @@ ENDIF(NOT CPACK_RPM_PACKAGE_GROUP)
# CPACK_RPM_PACKAGE_VENDOR
IF(NOT CPACK_RPM_PACKAGE_VENDOR)
- SET(CPACK_RPM_PACKAGE_VENDOR "unknown")
+ IF(CPACK_PACKAGE_VENDOR)
+ SET(CPACK_RPM_PACKAGE_VENDOR "${CPACK_PACKAGE_VENDOR}")
+ ELSE(CPACK_PACKAGE_VENDOR)
+ SET(CPACK_RPM_PACKAGE_VENDOR "unknown")
+ ENDIF(CPACK_PACKAGE_VENDOR)
ENDIF(NOT CPACK_RPM_PACKAGE_VENDOR)
# CPACK_RPM_PACKAGE_SOURCE