--- cmake.old/Modules/FortranCInterface/CMakeLists.txt +++ cmake/Modules/FortranCInterface/CMakeLists.txt @@ -113,11 +113,6 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 12) target_compile_options(FortranCInterface PRIVATE "-fno-lto") - target_compile_options(myfort PRIVATE "-flto=auto" "-ffat-lto-objects") -endif() -if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND - CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 12) - target_compile_options(symbols PRIVATE "-flto=auto" "-ffat-lto-objects") endif() file(GENERATE OUTPUT exe-$.cmake CONTENT [[