diff options
author | Justin LaPolla <jlapolla@cray.com> | 2021-03-29 14:08:10 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-31 09:30:48 -0400 |
commit | 258faaeef6ce80e8521b789029ea38e291f4dca0 (patch) | |
tree | 2e8fa2f47afd345c478392ab26e474f9a2d52751 | |
parent | 375e14a4052569aeec149a89223aa2b68d3d3fd0 (diff) | |
download | cmake-258faaeef6ce80e8521b789029ea38e291f4dca0.tar.gz |
Cray: Detect Fortran compiler version patch level if available
Fixes: #21969
-rw-r--r-- | Modules/CMakeFortranCompilerId.F.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in index 0a3db4cf6b..0f547e934d 100644 --- a/Modules/CMakeFortranCompilerId.F.in +++ b/Modules/CMakeFortranCompilerId.F.in @@ -62,6 +62,9 @@ PRINT *, 'INFO:compiler[Cray]' # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) +# if defined(_RELEASE_PATCHLEVEL) +# define COMPILER_VERSION_PATCH DEC(_RELEASE_PATCHLEVEL) +# endif #elif defined(__G95__) PRINT *, 'INFO:compiler[G95]' # define COMPILER_VERSION_MAJOR DEC(__G95__) |