summaryrefslogtreecommitdiff
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-07 09:18:13 -0500
committerBrad King <brad.king@kitware.com>2011-12-07 09:39:50 -0500
commitc198730b4558d03b9b98a5eedbf5653eb79ac09d (patch)
tree0b1baa91235894acd1dbc736f4daaa0b802a4966 /Modules/CMakeCCompilerId.c.in
parent5899b988d5306a301b768eadd43bc3ff4b6b839b (diff)
downloadcmake-c198730b4558d03b9b98a5eedbf5653eb79ac09d.tar.gz
Detect Watcom compiler version with its id
Decode decimal digits from __WATCOMC__ to compute the version number components. See documentation at: http://predef.sourceforge.net/precomp.html
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 cfa65c2851..af59349784 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -28,6 +28,8 @@
#elif defined(__WATCOMC__)
# define COMPILER_ID "Watcom"
+# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
+# define COMPILER_VERSION_MINOR DEC(__WATCOMC__ % 100)
#elif defined(__SUNPRO_C)
# define COMPILER_ID "SunPro"