Merge branch 'try_compile-expand-compile-defs' into release-3.14

Merge-request: !2965