summaryrefslogtreecommitdiff
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-22 11:31:33 -0400
committerBrad King <brad.king@kitware.com>2012-08-22 11:31:33 -0400
commitcca386b0a058c050a03c10bf1b9f1344aef7de3f (patch)
treeab7d7e3b988bdc837a9cc63e6743ed8001f2771f /Modules/CMakeCCompilerId.c.in
parent622d9a789dc72b159f7d571e3a700db5d090c1ef (diff)
downloadcmake-cca386b0a058c050a03c10bf1b9f1344aef7de3f.tar.gz
Detect Cray compiler version with its id
Decode decimal digits from _RELEASE _RELEASE_MINOR to compute version number components. See documentation at: http://docs.cray.com/books/S-2179-52/html-S-2179-52/zfixed5fvzxnxo.html http://sourceforge.net/p/predef/wiki/Compilers/#cray-c
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index d6e192d60f..f57a52a6e5 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -105,6 +105,8 @@
#elif defined(_CRAYC)
# define COMPILER_ID "Cray"
+# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
+# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI_DSP"