[cmake-commits] king committed CMakeCCompilerId.c 1.1.2.1 1.1.2.2 CMakeCXXCompilerId.cpp 1.1.2.1 1.1.2.2

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Apr 27 09:46:25 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv14328

Modified Files:
      Tag: CMake-Modules-CompilerId
	CMakeCCompilerId.c CMakeCXXCompilerId.cpp 
Log Message:
BUG: Fixed for HP compilers.


Index: CMakeCCompilerId.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Attic/CMakeCCompilerId.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- CMakeCCompilerId.c	27 Apr 2007 12:57:38 -0000	1.1.2.1
+++ CMakeCCompilerId.c	27 Apr 2007 13:46:23 -0000	1.1.2.2
@@ -2,6 +2,10 @@
 # error "A C++ compiler has been selected for C."
 #endif
 
+#ifdef __CLASSIC_C__
+# define const
+#endif
+
 static char const info_compiler[] = "INFO:compiler["
 #if defined(__INTEL_COMPILER) || defined(__ICC)
 "Intel"
@@ -27,7 +31,7 @@
    it is the native compiler.  */
 #elif defined(__sgi)
 "MIPSpro"
-#elif defined(__hpua) || defined(__hppx)
+#elif defined(__hpux) || defined(__hpua)
 "HP"
 
 #else /* unknown compiler */

Index: CMakeCXXCompilerId.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Attic/CMakeCXXCompilerId.cpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- CMakeCXXCompilerId.cpp	27 Apr 2007 12:57:38 -0000	1.1.2.1
+++ CMakeCXXCompilerId.cpp	27 Apr 2007 13:46:23 -0000	1.1.2.2
@@ -29,7 +29,7 @@
    it is the native compiler.  */
 #elif defined(__sgi)
 "MIPSpro"
-#elif defined(__hpua) || defined(__hppx)
+#elif defined(__hpux) || defined(__hpua)
 "HP"
 
 #else /* unknown compiler */



More information about the Cmake-commits mailing list