2011-04-08 01:09:05 +04:00
|
|
|
include(Compiler/XL)
|
|
|
|
__compiler_xl(Fortran)
|
2010-04-17 09:48:02 +04:00
|
|
|
|
2009-08-07 18:13:07 +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)
|
|
|
|
SET(CMAKE_Fortran_FLAGS_INIT "-qthreaded -qhalt=e")
|
|
|
|
|
2011-04-08 01:09:05 +04:00
|
|
|
# We require updates to CMake C++ code to support preprocessing rules for Fortran.
|
|
|
|
SET(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
|
|
|
SET(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)
|