Skip to content

Generating CPACK_PACKAGE_VERSION variable no longer supports non-digit versions as MINOR or PATCH version parts

We have previously used a script to add the current GIT SHA or SVN revision number as the patch version when the CPack script executes.

Our CMake script have relied on setting the CPACK_PACKAGE_VERSION_PATCH variable to a alphanumeric sequence which gets replaced during the execution of the generated CPack script. This have worked until CMake 3.12.0. This version assumes that CPACK_PACKAGE_VERSION_MINOR and CPACK_PACKAGE_VERSION_PATCH are digits.

It seems rather presuming to ban everything but digits. Our script may be a special case, but there are other projects out there which uses letters to indicate version (for example libjpeg).

Previous discussion on mail-list:

https://cmake.org/pipermail/cmake/2018-December/068743.html

https://cmake.org/pipermail/cmake/2019-May/069487.html

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information