diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-10-30 14:16:43 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-10-30 14:16:43 (GMT) |
commit | 09c49cf65826493d0e40ea22d9d30177d1eec93e (patch) | |
tree | 4c5bbeeaffacc49074caab9d5330f548e14e2492 /Modules/CPackRPM.cmake | |
parent | ec79fff8624766b3f1c3752c68f87241b6cfe083 (diff) | |
download | CMake-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/CPackRPM.cmake')
-rw-r--r-- | Modules/CPackRPM.cmake | 6 |
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 |