CPACKPACKAGEVERSIONMAJOR
CPACKPACKAGEVERSIONMAJOR is a CMake variable used by CPack, a companion to CMake that creates installers and packages for software. Specifically, CPACKPACKAGEVERSIONMAJOR defines the major version number of the package being built. When CPack is configured to create a package, it often requires version information to correctly label and organize the release. This variable is part of a set of variables that define the full version string, which typically includes major, minor, and patch components. For example, if a project's version is 2.3.1, CPACKPACKAGEVERSIONMAJOR would be set to 2. Developers typically set this variable within their CMakeLists.txt files, often in conjunction with CPACKPACKAGEVERSIONMINOR and CPACKPACKAGEVERSIONPATCH, or by defining a single CPACK_PACKAGE_VERSION variable that CPack parses. This structured approach to versioning ensures that generated packages are consistently and accurately identified, facilitating dependency management and user understanding of software releases.