diff options
author | Brad King <brad.king@kitware.com> | 2009-10-23 12:25:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-23 12:25:43 (GMT) |
commit | 83816cc6ec619f3c108734814837510e31370e99 (patch) | |
tree | 759584a3664fe2299d179486ae441fc8f3a8b18e /Modules/Compiler | |
parent | eb3d02e35121fc91b8a70eafcf9a4a55c3eb59a0 (diff) | |
download | CMake-83816cc6ec619f3c108734814837510e31370e99.zip CMake-83816cc6ec619f3c108734814837510e31370e99.tar.gz CMake-83816cc6ec619f3c108734814837510e31370e99.tar.bz2 |
Add support for the g95 Fortran compiler
This commit teaches CMake about the g95 compiler from
http://www.g95.org
We use 'G95' as the compiler id string, and add some basic flags.
See issue #9241.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/G95-Fortran.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/G95-Fortran.cmake b/Modules/Compiler/G95-Fortran.cmake new file mode 100644 index 0000000..cbd4661 --- /dev/null +++ b/Modules/Compiler/G95-Fortran.cmake @@ -0,0 +1,7 @@ +set(CMAKE_Fortran_FLAGS_INIT "") +set(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g") +set(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os") +set(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3") +set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") +set(CMAKE_Fortran_MODDIR_FLAG "-fmod=") +set(CMAKE_Fortran_VERBOSE_FLAG "-v") |