CPACKPACKAGEVERSION
CPACK_PACKAGE_VERSION is a CPack configuration variable used by CMake’s packaging system to specify the version of the package being generated. The value is included in package metadata and often appears in the resulting package file name, depending on the chosen generator (for example .deb, .rpm, or Windows installers).
The variable can be set directly in CMake with set(CPACK_PACKAGE_VERSION "1.2.3"). If CPACK_PACKAGE_VERSION is not defined,
CPACK_PACKAGE_VERSION supports semantic versioning and can include pre-release or build metadata, such as 1.2.3-rc1 or 1.2.3+build456.
Usage considerations include maintaining consistency between the project version and the package version, and ensuring compatibility
See also: related CPACK_ variables such as CPACK_PACKAGE_NAME, CPACK_PACKAGE_VENDOR, and CPACK_PACKAGE_CONTACT.
---