Merge topic 'fix-cpack-rpm-different-package-names'

672e6d2e CPack/RPM: Add missed CPACK_RPM_FILE_NAME fallback variable
This commit is contained in:
Brad King 2016-07-13 09:26:40 -04:00 committed by CMake Topic Stage
commit 4b726a3f5c
1 changed files with 1 additions and 0 deletions

View File

@ -1803,6 +1803,7 @@ function(cpack_rpm_generate_package)
endif()
cpack_rpm_variable_fallback("CPACK_RPM_FILE_NAME"
"CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_FILE_NAME"
"CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT_UPPER}_FILE_NAME"
"CPACK_RPM_FILE_NAME")
if(NOT CPACK_RPM_FILE_NAME STREQUAL "RPM-DEFAULT")