summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-31 13:32:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-03-31 13:32:57 (GMT)
commit36f1f7c449a4b213b207032a32082d78fd866348 (patch)
tree2e8fa2f47afd345c478392ab26e474f9a2d52751
parent375e14a4052569aeec149a89223aa2b68d3d3fd0 (diff)
parent258faaeef6ce80e8521b789029ea38e291f4dca0 (diff)
downloadCMake-36f1f7c449a4b213b207032a32082d78fd866348.zip
CMake-36f1f7c449a4b213b207032a32082d78fd866348.tar.gz
CMake-36f1f7c449a4b213b207032a32082d78fd866348.tar.bz2
Merge topic 'cray-version-patch' into release-3.20
258faaeef6 Cray: Detect Fortran compiler version patch level if available Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5957
-rw-r--r--Modules/CMakeFortranCompilerId.F.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeFortranCompilerId.F.in b/Modules/CMakeFortranCompilerId.F.in
index 0a3db4c..0f547e9 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__)