From 37b7cbb16d24f42583b6f33e0ab532cb48d8b4dd Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 21 Nov 2021 13:24:55 +0100 Subject: [PATCH] Include CMAKE_VERSION in the CPack 3.21.1 warning, just in case the condition needs to be changed in a future version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44e5de4..696c1ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")