Add Absoft Fortran compiler id and basic flags
Identification at preprocessing time depends on definition of __ABSOFT__ to be added in service pack V11.1.2 of the compiler.
This commit is contained in:
parent
73827b9205
commit
ac5b999fff
|
@ -64,7 +64,7 @@ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
# then 77 or older compilers, gnu is always last in the group,
|
# then 77 or older compilers, gnu is always last in the group,
|
||||||
# so if you paid for a compiler it is picked by default.
|
# so if you paid for a compiler it is picked by default.
|
||||||
SET(CMAKE_Fortran_COMPILER_LIST
|
SET(CMAKE_Fortran_COMPILER_LIST
|
||||||
ifort ifc efc f95 pathf2003 pathf95 pgf95 lf95 xlf95 fort
|
ifort ifc af95 af90 efc f95 pathf2003 pathf95 pgf95 lf95 xlf95 fort
|
||||||
gfortran gfortran-4 g95 f90 pathf90 pgf90 xlf90 epcf90 fort77
|
gfortran gfortran-4 g95 f90 pathf90 pgf90 xlf90 epcf90 fort77
|
||||||
frt pgf77 xlf fl32 af77 g77 f77
|
frt pgf77 xlf fl32 af77 g77 f77
|
||||||
)
|
)
|
||||||
|
@ -72,6 +72,7 @@ IF(NOT CMAKE_Fortran_COMPILER)
|
||||||
# Vendor-specific compiler names.
|
# Vendor-specific compiler names.
|
||||||
SET(_Fortran_COMPILER_NAMES_GNU gfortran gfortran-4 g95 g77)
|
SET(_Fortran_COMPILER_NAMES_GNU gfortran gfortran-4 g95 g77)
|
||||||
SET(_Fortran_COMPILER_NAMES_Intel ifort ifc efc)
|
SET(_Fortran_COMPILER_NAMES_Intel ifort ifc efc)
|
||||||
|
SET(_Fortran_COMPILER_NAMES_Absoft af95 af90 af77)
|
||||||
SET(_Fortran_COMPILER_NAMES_PGI pgf95 pgf90 pgf77)
|
SET(_Fortran_COMPILER_NAMES_PGI pgf95 pgf90 pgf77)
|
||||||
SET(_Fortran_COMPILER_NAMES_PathScale pathf2003 pathf95 pathf90)
|
SET(_Fortran_COMPILER_NAMES_PathScale pathf2003 pathf95 pathf90)
|
||||||
SET(_Fortran_COMPILER_NAMES_XL xlf)
|
SET(_Fortran_COMPILER_NAMES_XL xlf)
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
PRINT *, 'INFO:compiler[G95]'
|
PRINT *, 'INFO:compiler[G95]'
|
||||||
#elif defined(__PATHSCALE__)
|
#elif defined(__PATHSCALE__)
|
||||||
PRINT *, 'INFO:compiler[PathScale]'
|
PRINT *, 'INFO:compiler[PathScale]'
|
||||||
|
#elif defined(__ABSOFT__)
|
||||||
|
PRINT *, 'INFO:compiler[Absoft]'
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
PRINT *, 'INFO:compiler[GNU]'
|
PRINT *, 'INFO:compiler[GNU]'
|
||||||
#elif defined(__IBMC__)
|
#elif defined(__IBMC__)
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
SET(CMAKE_Fortran_FLAGS_INIT "")
|
||||||
|
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||||
|
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "")
|
||||||
|
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||||
|
SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||||
|
SET(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
|
||||||
|
SET(CMAKE_Fortran_MODPATH_FLAG "-p")
|
||||||
|
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
Loading…
Reference in New Issue