diff options
author | Brad King <brad.king@kitware.com> | 2009-08-07 10:13:07 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-08-07 10:13:07 -0400 |
commit | 115ecc5750deff688d580b48223d865ef8c9bf4c (patch) | |
tree | fe5b5f1bb49130caf43ae1bbd4afbcdfaa377b3d /Modules/CMakeCXXCompilerId.cpp.in | |
parent | 34c6588b6ed7219543e0155e501205ea3048684e (diff) | |
download | cmake-115ecc5750deff688d580b48223d865ef8c9bf4c.tar.gz |
Teach compiler id about VisualAge -> XL rebranding
IBM rebranded its VisualAge compiler to XL starting at version 8.0. We
use the compiler id "XL" for newer versions and "VisualAge" for older
versions. We now also recognize the "z/OS" compiler, which is distinct
from XL.
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index 77a6247c3d..2c8aa3c3c2 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -27,7 +27,13 @@ # define COMPILER_ID "Compaq" #elif defined(__IBMCPP__) -# define COMPILER_ID "VisualAge" +# if defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# elif __IBMCPP__ >= 800 +# define COMPILER_ID "XL" +# else +# define COMPILER_ID "VisualAge" +# endif #elif defined(__PGI) # define COMPILER_ID "PGI" |