From c29cf0e1d2df04c2b2c85adc872b75769cc5c14c Mon Sep 17 00:00:00 2001 From: Eric NOULARD Date: Sun, 4 Jul 2010 12:27:47 +0200 Subject: [PATCH] Provides default changelog if no file is provided --- Modules/CPackRPM.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 4a1410932..7dbc97f10 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -392,6 +392,8 @@ if(CPACK_RPM_CHANGELOG_FILE) else(EXISTS ${CPACK_RPM_CHANGELOG_FILE}) message(SEND_ERROR "CPackRPM:Warning: CPACK_RPM_CHANGELOG_FILE <${CPACK_RPM_CHANGELOG_FILE}> does not exists - ignoring") endif(EXISTS ${CPACK_RPM_CHANGELOG_FILE}) +else(CPACK_RPM_CHANGELOG_FILE) + set(CPACK_RPM_SPEC_CHANGELOG "* Sun Jul 4 2010 Erk \n Generated by CPack RPM (no Changelog file were provided)") endif(CPACK_RPM_CHANGELOG_FILE) # CPACK_RPM_SPEC_MORE_DEFINE