5c0c635a09
Define a "Fortran_FORMAT" target and source file property. Initialize the target property from a "CMAKE_Fortran_FORMAT" variable. Interpret values "FIXED" and "FREE" to indicate the source file format. Append corresponding flags to the compiler command line.
7 lines
199 B
CMake
7 lines
199 B
CMake
include(Compiler/PathScale)
|
|
__compiler_pathscale(Fortran)
|
|
|
|
SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixedform")
|
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-freeform")
|