Skip to content

Add version component definitions

Compare
Choose a tag to compare
@TheLartians TheLartians released this 29 Jun 12:48
· 6 commits to master since this release
19ccf94

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!