소스 검색

Fortran: Detect G95 compiler version

The __G95__ and __G95_MINOR__ preprocessor symbols encode the compiler
version as decimal digits.
Brad King 11 년 전
부모
커밋
c6e1f46475
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Modules/CMakeFortranCompilerId.F.in

+ 2 - 0
Modules/CMakeFortranCompilerId.F.in

@@ -47,6 +47,8 @@
         PRINT *, 'INFO:compiler[Cray]'
 #elif defined(__G95__)
         PRINT *, 'INFO:compiler[G95]'
+# define COMPILER_VERSION_MAJOR DEC(__G95__)
+# define COMPILER_VERSION_MINOR DEC(__G95_MINOR__)
 #elif defined(__PATHSCALE__)
         PRINT *, 'INFO:compiler[PathScale]'
 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)