Find* scripts should be updated to support find_package version range feature
With !5226 (merged) being merged and released with CMake 3.19 it is now possible to call find_package
with a range of versions that are acceptable for the searched package.
However, in order to support a version range (and not only print a warning and just accept the minimum version) the Find*.cmake
scripts need to be adjusted.
This is what this issue is all about:
Add support for version ranges to Find*.cmake
scripts.
Currently (2021-01-21), the only Find*.cmake
scripts which have support for version ranges are the FindPython*.cmake
scripts.
Those have some additional logic for when a version range is requested which is quite complicated.
However, if I understand it correctly, for most other Find*.cmake
scripts the required changes should be quite simple:
One probably only has to add the flag HANDLE_VERSION_RANGE
to the find_package_handle_standard_args
call(s) within these Find*.cmake
scripts.