cmake find_package(X [version]) always finds highest version of X if multiple versions installed

Version range is not supported by all modules. This probably explains why specifying a range seems ignored.

Moreover, without the EXACT keyword, the standard meaning, when a version is specified, is to search for the most recent version which is greater or equal to this version.

So what you describe is the expected behavior…

2 Likes