XL-Fortran.cmake 455 B

123456789101112
  1. include(Compiler/XL)
  2. __compiler_xl(Fortran)
  3. SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
  4. # -qthreaded = Ensures that all optimizations will be thread-safe
  5. # -qhalt=e = Halt on error messages (rather than just severe errors)
  6. SET(CMAKE_Fortran_FLAGS_INIT "-qthreaded -qhalt=e")
  7. # We require updates to CMake C++ code to support preprocessing rules for Fortran.
  8. SET(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
  9. SET(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)