summaryrefslogtreecommitdiff
path: root/Modules/CMakeFortranCompilerId.F.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-12 10:55:11 -0500
committerBrad King <brad.king@kitware.com>2015-11-12 10:56:23 -0500
commit09f754f040f3e817cd69337adea2c73cb61d53da (patch)
treeecc407d88d6056d32182ee37319574af2d6e890c /Modules/CMakeFortranCompilerId.F.in
parent3187de20fd9949ab90df4651f5d1ae0d218a9afd (diff)
downloadcmake-09f754f040f3e817cd69337adea2c73cb61d53da.tar.gz
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.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in
index 2533d3f98b..8c4c1e2796 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__)