diff options
author | Brad King <brad.king@kitware.com> | 2011-01-17 14:52:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-01-17 14:52:33 (GMT) |
commit | db05da35d26b7b10a65b5330e1506582c29268ad (patch) | |
tree | 433c8a0da98335047b92bf11324955d08379327c /Modules | |
parent | 28a0403c3491d4a96f5dc827e54442a1d0a0dea7 (diff) | |
download | CMake-db05da35d26b7b10a65b5330e1506582c29268ad.zip CMake-db05da35d26b7b10a65b5330e1506582c29268ad.tar.gz CMake-db05da35d26b7b10a65b5330e1506582c29268ad.tar.bz2 |
Recognize SCO UnixWare C/C++ compilers (#11700)
These compilers define __SCO_VERSION__ as VvvYYYYMML:
V = major version
vv = minor version
YYYY = release year
MM = release month
http://osr600doc.sco.com/en/manCP/cc.CP.html
http://osr600doc.sco.com/en/manCP/CC.CP.html
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCCompilerId.c.in | 3 | ||||
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp.in | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in index c7778fb..c91553a 100644 --- a/Modules/CMakeCCompilerId.c.in +++ b/Modules/CMakeCCompilerId.c.in @@ -48,6 +48,9 @@ #elif defined(__TI_COMPILER_VERSION__) # define COMPILER_ID "TI_DSP" +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + #elif defined(__GNUC__) # define COMPILER_ID "GNU" diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index 2ff227a..4c8f497 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -50,6 +50,9 @@ #elif defined(__TI_COMPILER_VERSION__) # define COMPILER_ID "TI_DSP" +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + #elif defined(__GNUC__) # define COMPILER_ID "GNU" |