Export: Fix internal CMake version test logic

Fix the internal DEVEL_CMAKE_VERSION macro to perform an ordered
component-wise version test.  Otherwise an old invocation of the macro
may be tricked into using the current version when the requested major
version is smaller than the current version but the requested minor
version is larger.  It should use the requested (old) version in that
case.
Merge topic 'cmake-devel-version-macro' into next

c0da9966 Export: Fix internal CMake version test logic