Show a warning when CMake/CPack 3.21.1 is being used

This commit is contained in:
Username404 2021-08-18 23:40:32 +02:00
parent 4b0e58dd6a
commit 845f356a86
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ if (UNIX AND NOT MINGW)
set(CPACK_RPM_PACKAGE_AUTOREQ YES)
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")
endif()
if (NOT APPLE)
set(GZNAME "changelog.Debian.gz")
add_custom_command(