CMake/Tests/FortranOnly/world.f
Brad King 5c0c635a09 Fortran: Add support for free- and fixed-form flags
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.
2011-08-31 10:24:43 -04:00

5 lines
97 B
Fortran

! Free-format ".f" file to test Fortran_FORMAT property
SUBROUTINE WORLD
PRINT *, 'World!'
END