It should fix "Broken cmake file with Qt5.10 full" #40706. I leave to @ttuegel rearranging the patches.