summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-22 14:15:00 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 14:17:01 (GMT)
commit707aefd853d1fec2960058e2e921e5d24c736526 (patch)
tree410370c37bcdd3565e9ab2d11aeb93e4171a668c /Modules/CMakeCCompilerId.c.in
parentaddefc2ae3b33a75a7152730146b46b319118a24 (diff)
downloadCMake-707aefd853d1fec2960058e2e921e5d24c736526.zip
CMake-707aefd853d1fec2960058e2e921e5d24c736526.tar.gz
CMake-707aefd853d1fec2960058e2e921e5d24c736526.tar.bz2
Detect Compaq compiler version with its id
Decode decimal digits from __DECC_VER and __DECCXX_VER to compute version number components. See documentation at: http://www.openvms.compaq.com/commercial/c/docs/5492p024.html#decc_ver_sec http://www.tru64unix.compaq.com/cplus/ugu_impl.html#predef_vernum http://sourceforge.net/p/predef/wiki/Compilers/#compaq-cchttpwwwopenvmscompaqcomopenvmsbrochuresdeccplus
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index 06aa9bf..7771dbf 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -67,6 +67,10 @@
#elif defined(__DECC)
# define COMPILER_ID "Compaq"
+ /* __DECC_VER = VVRRTPPPP */
+# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
+# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
+# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
#elif defined(__IBMC__)
# if defined(__COMPILER_VER__)