diff --git a/cmake/Rpm.cmake b/cmake/Rpm.cmake index bf511564..66dd3f2d 100644 --- a/cmake/Rpm.cmake +++ b/cmake/Rpm.cmake @@ -47,8 +47,8 @@ if (LSB_RELEASE_EXEC AND RPMBUILD_EXEC) set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file") endif() elseif (${DIST_NAME} STREQUAL "mageia") - if (DIST_VERSION) - set(RPM_DISTRO "${DIST_VERSION}" CACHE STRING "Suffix of the rpm file") + if (DIST_RELEASE) + set(RPM_DISTRO "mga${DIST_RELEASE}" CACHE STRING "Suffix of the rpm file") else () set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file") endif()