`CMAKE_Fortran_FLAGS_*` on GCC toolchain duplicate flags
Specifically, there are duplicates of -O
flags. Technically they should not affect things, but I got a report that it makes things confusing:
//Flags used by the Fortran compiler during all build types.
CMAKE_Fortran_FLAGS:STRING=
//Flags used by the Fortran compiler during DEBUG builds.
CMAKE_Fortran_FLAGS_DEBUG:STRING=-g
//Flags used by the Fortran compiler during MINSIZEREL builds.
CMAKE_Fortran_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG -Os
//Flags used by the Fortran compiler during RELEASE builds.
CMAKE_Fortran_FLAGS_RELEASE:STRING=-O3 -DNDEBUG -O3
//Flags used by the Fortran compiler during RELWITHDEBINFO builds.
CMAKE_Fortran_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG