diff options
author | Brad King <brad.king@kitware.com> | 2015-02-17 18:32:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-19 14:26:28 (GMT) |
commit | c6e1f4647576801b27fbb25652fe3e947564be27 (patch) | |
tree | f8e8d8e444e5cc1483e076016705616d157c2561 /Modules/CMakeFortranCompilerId.F.in | |
parent | 0033faac1d5641c370646e089ca19cd527a8d842 (diff) | |
download | CMake-c6e1f4647576801b27fbb25652fe3e947564be27.zip CMake-c6e1f4647576801b27fbb25652fe3e947564be27.tar.gz CMake-c6e1f4647576801b27fbb25652fe3e947564be27.tar.bz2 |
Fortran: Detect G95 compiler version
The __G95__ and __G95_MINOR__ preprocessor symbols encode the compiler
version as decimal digits.
Diffstat (limited to 'Modules/CMakeFortranCompilerId.F.in')
-rw-r--r-- | Modules/CMakeFortranCompilerId.F.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in index 98ec7f3..2533d3f 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/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__) |