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.
This commit is contained in:
parent
eb3d02e351
commit
83816cc6ec
@ -6,6 +6,8 @@
|
||||
PRINT *, 'INFO:compiler[Intel]'
|
||||
#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)
|
||||
PRINT *, 'INFO:compiler[SunPro]'
|
||||
#elif defined(__G95__)
|
||||
PRINT *, 'INFO:compiler[G95]'
|
||||
#elif defined(__GNUC__)
|
||||
PRINT *, 'INFO:compiler[GNU]'
|
||||
#elif defined(__IBMC__)
|
||||
|
7
Modules/Compiler/G95-Fortran.cmake
Normal file
7
Modules/Compiler/G95-Fortran.cmake
Normal file
@ -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")
|
Loading…
x
Reference in New Issue
Block a user