mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-08 16:50:48 +00:00
Since commitcb616d43d6(FortranCInterface: Fix failure with gfortran 12 and Clang, 2022-05-16, v3.23.2~10^2) we add LTO flags for C symbols when using the GNU C compiler. However, they are only needed when detecting mangling of the GNU Fortran compiler, as was originally written in commit6a0ce19ce1(FortranCInterface: Fix compatibility with GCC gfortran 12 LTO, 2022-01-19, v3.22.2~5^2). Fixes: #28008