Show a warning when CMake/CPack 3.21.1 is being used
This commit is contained in:
parent
4b0e58dd6a
commit
845f356a86
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue