mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 22:40:25 +00:00
af2ad90991
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.
6 lines
234 B
CMake
6 lines
234 B
CMake
set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood.
|
|
|
|
# Need -fpp explicitly on case-insensitive filesystem.
|
|
set(CMAKE_Fortran_COMPILE_OBJECT
|
|
"<CMAKE_Fortran_COMPILER> -fpp -o <OBJECT> <DEFINES> <FLAGS> -c <SOURCE>")
|