Generating Package Version Files

Let's learn about utility modules that generate the package's version files.

Interestingly, CMakePackageConfigHelpers also provides a helper command to generate package's version files. Let's take a look.

As our package grows, it will slowly gain new features, old ones will be marked as deprecated, and eventually be removed. It's important to keep track of these modifications in a changelog that's available to developers that use our package. When a specific feature is needed, a developer can find the lowest version that supports it and use it as an argument to find_package(), like so:

Get hands-on with 1200+ tech skills courses.