Version comparison should respect special suffixes
CMAKE_VERSION VERSION_LESS 3.8.0
yields false for CMAKE_VERSION=3.8.0-rc1
.
It would be very convenient if VERSION_LESS
, VERSION_EQUAL
and VERSION_GREATER
respected special suffixes like -rcN
into account. Also the semantic versioning uses similar suffixes for pre-release versions.