cmake/Modules/Compiler/XL-Fortran.cmake

18 lines
625 B
CMake
Raw Normal View History

2011-06-19 15:41:06 +03:00
include(Compiler/XL)
__compiler_xl(Fortran)
2012-02-18 12:40:36 +02:00
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-qfixed") # [=<right_margin>]
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-qfree") # [=f90|ibm]
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_MODDIR_FLAG "-qmoddir=")
2010-06-23 01:18:35 +03:00
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
2009-10-04 10:30:41 +03:00
2011-06-19 15:41:06 +03:00
# -qthreaded = Ensures that all optimizations will be thread-safe
# -qhalt=e = Halt on error messages (rather than just severe errors)
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_FLAGS_INIT "-qthreaded -qhalt=e")
2011-06-19 15:41:06 +03:00
# We require updates to CMake C++ code to support preprocessing rules for Fortran.
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)