Improve CMake migration helpers

It also includes a fix needed for lhcb/Brunel!1134 (merged)

Merge request reports

Loading