XL-Fortran.cmake 703 B

1234567891011121314151617181920
  1. include(Compiler/XL)
  2. __compiler_xl(Fortran)
  3. set(CMAKE_Fortran_SUBMODULE_SEP "_")
  4. set(CMAKE_Fortran_SUBMODULE_EXT ".smod")
  5. set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-qfixed") # [=<right_margin>]
  6. set(CMAKE_Fortran_FORMAT_FREE_FLAG "-qfree") # [=f90|ibm]
  7. set(CMAKE_Fortran_MODDIR_FLAG "-qmoddir=")
  8. set(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
  9. # -qthreaded = Ensures that all optimizations will be thread-safe
  10. # -qhalt=e = Halt on error messages (rather than just severe errors)
  11. string(APPEND CMAKE_Fortran_FLAGS_INIT " -qthreaded -qhalt=e")
  12. # xlf: 1501-214 (W) command option E reserved for future use - ignored
  13. set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
  14. set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)