Extend the range of supported CMake package config versions
Replaces the logic from CMake's write_basic_package_version_file
with something more intuitive so that users can specify version
ranges, and match only major.minor versions.
Fixes #2969 (closed), #2972 (closed)
Edited by Antonio Sánchez