Backport many fixes

Backport of !11557 (merged)

Also comment out version check warnings in CMake.

Also backport the following MRs

Edited by Mathieu Westphal (Kitware)

Merge request reports

Loading