diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-03-26 16:00:35 +1100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-06-18 21:53:45 +0200 |
commit | e548e2184bed04478ba1fe5107da817bc768d023 (patch) | |
tree | 599915c540b32aa2be74725d4ab507c429a985bb /cmake | |
parent | c7141fa75df91ae4c2a1214283111eeb1c2eda11 (diff) | |
download | mariadb-git-e548e2184bed04478ba1fe5107da817bc768d023.tar.gz |
Use CPACK_RPM_FILE_NAME="RPM-DEFAULT"
This has been implemented in for cmake-3.6 to match distro version
of what the filename should look like.
Thanks to Domen Vranka for the suggestion.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/cpack_rpm.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/cpack_rpm.cmake b/cmake/cpack_rpm.cmake index 5789eb7694a..c3ec731144b 100644 --- a/cmake/cpack_rpm.cmake +++ b/cmake/cpack_rpm.cmake @@ -28,7 +28,11 @@ SET(CPACK_COMPONENTS_ALL Server ManPagesServer IniFiles Server_Scripts Common Client SharedLibraries) SET(CPACK_RPM_PACKAGE_NAME "MariaDB") -SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}") +IF(CMAKE_VERSION VERSION_LESS "3.6.0") + SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}") +ELSE() + SET(CPACK_RPM_FILE_NAME "RPM-DEFAULT") +ENDIF() SET(CPACK_RPM_PACKAGE_RELEASE "1%{?dist}") SET(CPACK_RPM_PACKAGE_LICENSE "GPLv2") |