diff options
author | Brad King <brad.king@kitware.com> | 2015-11-12 15:55:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-12 15:56:23 (GMT) |
commit | 09f754f040f3e817cd69337adea2c73cb61d53da (patch) | |
tree | ecc407d88d6056d32182ee37319574af2d6e890c /Modules/CMakeFortranCompilerId.F.in | |
parent | 3187de20fd9949ab90df4651f5d1ae0d218a9afd (diff) | |
download | CMake-09f754f040f3e817cd69337adea2c73cb61d53da.zip CMake-09f754f040f3e817cd69337adea2c73cb61d53da.tar.gz CMake-09f754f040f3e817cd69337adea2c73cb61d53da.tar.bz2 |
Cray: Implement Fortran compiler version detection (#15845)
We already recognize the Cray Fortran compiler id. Extract the version
number using the same predefined macros we already use for Cray C and
C++ compilers.
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 2533d3f..8c4c1e2 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/Modules/CMakeFortranCompilerId.F.in @@ -45,6 +45,8 @@ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF) #elif defined(_CRAYFTN) PRINT *, 'INFO:compiler[Cray]' +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) #elif defined(__G95__) PRINT *, 'INFO:compiler[G95]' # define COMPILER_VERSION_MAJOR DEC(__G95__) |