GNU-Fortran.cmake 337 B

123456789101112
  1. include(Compiler/GNU)
  2. __compiler_gnu(Fortran)
  3. set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-ffixed-form")
  4. set(CMAKE_Fortran_FORMAT_FREE_FLAG "-ffree-form")
  5. # No -DNDEBUG for Fortran.
  6. set(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
  7. set(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
  8. # Fortran-specific feature flags.
  9. set(CMAKE_Fortran_MODDIR_FLAG -J)