From 09f754f040f3e817cd69337adea2c73cb61d53da Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 12 Nov 2015 10:55:11 -0500 Subject: 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. --- Modules/CMakeFortranCompilerId.F.in | 2 ++ 1 file changed, 2 insertions(+) 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__) -- cgit v0.12