cmake/Modules/Compiler/PGI-Fortran.cmake

14 lines
458 B
CMake
Raw Normal View History

2010-03-17 14:00:29 +02:00
include(Compiler/PGI)
__compiler_pgi(Fortran)
2017-04-14 19:02:05 +02:00
set(CMAKE_Fortran_PREPROCESS_SOURCE
"<CMAKE_Fortran_COMPILER> -Mpreprocess <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
2012-02-18 12:40:36 +02:00
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-Mnofreeform")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-Mfreeform")
2016-10-30 18:24:19 +01:00
string(APPEND CMAKE_Fortran_FLAGS_INIT " -Mpreprocess -Kieee")
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -Mbounds")
2010-03-17 14:00:29 +02:00
2013-03-16 19:13:01 +02:00
set(CMAKE_Fortran_MODDIR_FLAG "-module ")