ソースを参照

Fortran: Detect PGI compiler version

Port logic from the "Compiler/PGI-DetermineCompiler" module into
"CMakeFortranCompilerId.F.in".
Brad King 11 年 前
コミット
0033faac1d
1 ファイル変更5 行追加0 行削除
  1. 5 0
      Modules/CMakeFortranCompilerId.F.in

+ 5 - 0
Modules/CMakeFortranCompilerId.F.in

@@ -79,6 +79,11 @@
 # endif
 #elif defined(__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)
         PRINT *, 'INFO:compiler[MIPSpro]'
 #       if 0