2011-04-08 01:09:05 +04:00
|
|
|
include(Compiler/XL)
|
|
|
|
__compiler_xl(Fortran)
|
2010-04-17 09:48:02 +04:00
|
|
|
|
2011-08-31 18:24:43 +04:00
|
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-qfixed") # [=<right_margin>]
|
|
|
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-qfree") # [=f90|ibm]
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-qmoddir=")
|
2011-06-01 19:59:58 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
|
2009-09-30 17:37:35 +04:00
|
|
|
|
2011-04-08 01:07:23 +04:00
|
|
|
# -qthreaded = Ensures that all optimizations will be thread-safe
|
|
|
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
2016-07-05 20:35:13 +03:00
|
|
|
string(APPEND CMAKE_Fortran_FLAGS_INIT " -qthreaded -qhalt=e")
|
2011-04-08 01:07:23 +04:00
|
|
|
|
2014-11-05 21:43:06 +03:00
|
|
|
# xlf: 1501-214 (W) command option E reserved for future use - ignored
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
|
|
|
set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)
|