Add version component definitions
Using the VERSION
flag with a CMake version identifier (<major>[.<minor>[.<patch>[.<tweak>]]]
) will now also define macros containing integer values for the major, minor, patch and tweak components. They are accessed in C++ by appending the component name to the version macro, e.g. <uppercase package name>_VERSION_MAJOR
.
Thanks to @mscofield0 for the PR!