cmake/Modules/Compiler/XL-Fortran.cmake

18 lines
624 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)
2016-10-30 18:24:19 +01:00
string(APPEND CMAKE_Fortran_FLAGS_INIT " -qthreaded -qhalt=e")
2011-06-19 15:41:06 +03:00
2015-04-27 22:25:09 +02:00
# xlf: 1501-214 (W) command option E reserved for future use - ignored
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)