summaryrefslogtreecommitdiff
path: root/Modules/Compiler/NAG-Fortran.cmake
Commit message (Collapse)AuthorAgeFilesLines
* NAG: Use -PIC for Fortran position-independent code (#13932)Neil Carlson2013-02-181-0/+1
| | | | | The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for position-independent code.
* Fortran: Add support for free- and fixed-form flagsBrad King2011-08-311-0/+2
| | | | | | | 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.
* Add NAG Fortran compiler information filesBrad King2010-12-091-0/+32
On Linux the NAG Fortran compiler uses gcc under the hood to link. Use "-Wl,-v" to pass "-v" to the underlying gcc compiler to get verbose link output. Detect the NAG Fortran directory (using -dryrun) and then honor object files in the directory referenced in the implicit link line. Pass real linker options with "-Wl,-Xlinker,". The -Wl, gets through the NAG front-end and the -Xlinker gets through the gcc front-end.