From feb0e1c45b2e8d01a56bbbab46f9ac0d2605d610 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 18 Sep 2018 18:43:04 +0200 Subject: [PATCH] Fix Fedora RPM suffix --- cmake/Rpm.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Rpm.cmake b/cmake/Rpm.cmake index 03fa84051..3de0e47ad 100644 --- a/cmake/Rpm.cmake +++ b/cmake/Rpm.cmake @@ -46,8 +46,8 @@ if (LSB_RELEASE_EXEC) COMMAND rpmbuild -bb ${CMAKE_SOURCE_DIR}/dist/opensuse/strawberry.spec ) elseif (${DIST_NAME} STREQUAL "fedora") - if (DIST_RELEASE) - set(RPM_DISTRO ${DIST_NAME}${DIST_RELEASE} CACHE STRING "Suffix of the rpm file") + if (DIST_VERSION) + set(RPM_DISTRO "${DIST_NAME}${DIST_VERSION}" CACHE STRING "Suffix of the rpm file") else () set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file") endif()