From d7a4d475433a912767b47449e86261a2553488e0 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 14 Mar 2021 14:47:22 -0700 Subject: [PATCH] Include the contents of PROJECT_DESCRIPTION in the PACKAGE_PREFIX. If it's defined. PACKAGE_PREFIX is used to name tarballs and set their base directory. The translation project has requested that we name freeze-string traballs with a pre1 suffix; this makes that possible. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f272b4278..03b955e7d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -818,6 +818,9 @@ dist_add_generated (${BUILDING_FROM_VCS} ChangeLog) ############################ BEGIN MAKE DIST ################# set(PACKAGE_PREFIX "${PROJECT_NAME}-${PROJECT_VERSION}") +if (PROJECT_DESCRIPTION) + string(APPEND PACKAGE_PREFIX "-${PROJECT_DESCRIPTION}") +endif() set(DIST_FILE "${PACKAGE_PREFIX}.tar") set(toplvl_DIST_local ${gnucash_DOCS}