summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-07 14:13:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-07 14:13:07 (GMT)
commit115ecc5750deff688d580b48223d865ef8c9bf4c (patch)
treefe5b5f1bb49130caf43ae1bbd4afbcdfaa377b3d /Modules/Compiler
parent34c6588b6ed7219543e0155e501205ea3048684e (diff)
downloadCMake-115ecc5750deff688d580b48223d865ef8c9bf4c.zip
CMake-115ecc5750deff688d580b48223d865ef8c9bf4c.tar.gz
CMake-115ecc5750deff688d580b48223d865ef8c9bf4c.tar.bz2
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/Compiler')
-rw-r--r--Modules/Compiler/VisualAge-C.cmake2
-rw-r--r--Modules/Compiler/VisualAge-CXX.cmake2
-rw-r--r--Modules/Compiler/VisualAge-Fortran.cmake3
-rw-r--r--Modules/Compiler/XL-C.cmake1
-rw-r--r--Modules/Compiler/XL-CXX.cmake1
-rw-r--r--Modules/Compiler/XL-Fortran.cmake2
6 files changed, 7 insertions, 4 deletions
diff --git a/Modules/Compiler/VisualAge-C.cmake b/Modules/Compiler/VisualAge-C.cmake
index 3120478..40b609e 100644
--- a/Modules/Compiler/VisualAge-C.cmake
+++ b/Modules/Compiler/VisualAge-C.cmake
@@ -1 +1 @@
-SET(CMAKE_C_VERBOSE_FLAG "-V")
+include(Compiler/XL-C)
diff --git a/Modules/Compiler/VisualAge-CXX.cmake b/Modules/Compiler/VisualAge-CXX.cmake
index 618ff5a..2509b43 100644
--- a/Modules/Compiler/VisualAge-CXX.cmake
+++ b/Modules/Compiler/VisualAge-CXX.cmake
@@ -1 +1 @@
-SET(CMAKE_CXX_VERBOSE_FLAG "-V")
+include(Compiler/XL-CXX)
diff --git a/Modules/Compiler/VisualAge-Fortran.cmake b/Modules/Compiler/VisualAge-Fortran.cmake
index 49d6bb2..3ef3178 100644
--- a/Modules/Compiler/VisualAge-Fortran.cmake
+++ b/Modules/Compiler/VisualAge-Fortran.cmake
@@ -1,2 +1 @@
-SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
-SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
+include(Compiler/XL-Fortran)
diff --git a/Modules/Compiler/XL-C.cmake b/Modules/Compiler/XL-C.cmake
new file mode 100644
index 0000000..3120478
--- /dev/null
+++ b/Modules/Compiler/XL-C.cmake
@@ -0,0 +1 @@
+SET(CMAKE_C_VERBOSE_FLAG "-V")
diff --git a/Modules/Compiler/XL-CXX.cmake b/Modules/Compiler/XL-CXX.cmake
new file mode 100644
index 0000000..618ff5a
--- /dev/null
+++ b/Modules/Compiler/XL-CXX.cmake
@@ -0,0 +1 @@
+SET(CMAKE_CXX_VERBOSE_FLAG "-V")
diff --git a/Modules/Compiler/XL-Fortran.cmake b/Modules/Compiler/XL-Fortran.cmake
new file mode 100644
index 0000000..49d6bb2
--- /dev/null
+++ b/Modules/Compiler/XL-Fortran.cmake
@@ -0,0 +1,2 @@
+SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
+SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")