the documentation about CMake modules lists both Xxx_VERSION_Yy
and Xxx_VERSION_MAJOR
et all as recommended variables:
Xxx_VERSION_Yy
: Expect Version Yy if true. Make sure at most one of these is ever trueXxx_VERSION_MAJOR
: The major version of the package found, if any
is there any meaning in this separation? Should i read this as major being a subset of Xy which holds a special meaning for CMake? Or have these sets different use cases?
i.e., can i phrase this as:
define
Xxx_VERSION_Yy
to provide version details, of whichXxx_VERSION_MAJOR
should be used for major versions.
i think i’ve read in the documentation that version handling is left to the package developer but I couldn’t locate the source. In this case using Xxx_VERSION_MAJOR
for major versions is only a recommendation?