Fortran: Detect PGI compiler version

Port logic from the "Compiler/PGI-DetermineCompiler" module into
"CMakeFortranCompilerId.F.in".
This commit is contained in:
Brad King 2015-02-17 13:31:45 -05:00
parent 302d47b1fe
commit 0033faac1d
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@
# endif # endif
#elif defined(__PGI) #elif defined(__PGI)
PRINT *, 'INFO:compiler[PGI]' PRINT *, 'INFO:compiler[PGI]'
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
PRINT *, 'INFO:compiler[MIPSpro]' PRINT *, 'INFO:compiler[MIPSpro]'
# if 0 # if 0