Use the correct cmake version for this check.
The flat_iterator template is now a random-access traversal iterator.