diff options
author | Brad King <brad.king@kitware.com> | 2012-08-22 14:16:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-22 14:17:01 (GMT) |
commit | 4ad7fa64889d4a05bce3540ae1a6dbd87f654d9d (patch) | |
tree | a83982432ad4be3914ffe8dbf1ed515d5184e900 /Modules/CMakeCXXCompilerId.cpp.in | |
parent | 952651c6428755f50a80d3b64a4e09d3bd1afc3b (diff) | |
download | CMake-4ad7fa64889d4a05bce3540ae1a6dbd87f654d9d.zip CMake-4ad7fa64889d4a05bce3540ae1a6dbd87f654d9d.tar.gz CMake-4ad7fa64889d4a05bce3540ae1a6dbd87f654d9d.tar.bz2 |
Detect Comeau compiler version with its id
Decode decimal digits from __COMO_VERSION__ to compute the version
number components. See documentation at:
http://www.comeaucomputing.com/4.0/docs/userman/predefs.html
http://sourceforge.net/p/predef/wiki/Compilers/#comeau-chttpenwikipediaorgwikicomeau_cc2b2b
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index acffbf4..a11996d 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -10,6 +10,9 @@ #if defined(__COMO__) # define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) #elif defined(__INTEL_COMPILER) || defined(__ICC) # define COMPILER_ID "Intel" |