CMAKE_PROJECT_VERSION_PATCH

From Get docs
Cmake/docs/3.21/variable/cmake project version patch


CMAKE_PROJECT_VERSION_PATCH

New in version 3.12.


The patch version of the top level project.

This variable holds the patch version of the project as specified in the top level CMakeLists.txt file by a project() command. Please see CMAKE_PROJECT_VERSION documentation for the behavior when multiple project() commands are used in the sources.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_PROJECT_VERSION_PATCH.html