Include CMAKE_VERSION in the CPack 3.21.1 warning, just in case the condition needs to be changed in a future version

This commit is contained in:
Username404 2021-11-21 13:24:55 +01:00
parent d8314513c3
commit 7d40230f65
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ if (UNIX AND NOT MINGW)
set(CPACK_RPM_PACKAGE_LICENSE "MPL-2.0")
set(CPACK_RPM_CHANGELOG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/changelog")
if (CMAKE_VERSION STREQUAL "3.21.1")
message(WARNING "CPack 3.21.1 has a bug that causes rpm scripts to be unusable; please update or downgrade")
message(WARNING "CPack ${CMAKE_VERSION} has a bug which causes rpm scripts to be unusable; please update or downgrade")
endif()
if (NOT APPLE)
set(GZNAME "changelog.Debian.gz")