Merge branch 'try_compile-CMP0128' into release-3.24

Merge-request: !7803