[cmake-commits] hoffman committed CMakeCXXCompilerId.cpp 1.4 1.5

cmake-commits at cmake.org cmake-commits at cmake.org
Thu May 17 08:38:09 EDT 2007


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

Modified Files:
	CMakeCXXCompilerId.cpp 
Log Message:
BUG: make sure this thing compiles on 64 bit machines


Index: CMakeCXXCompilerId.cpp
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeCXXCompilerId.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CMakeCXXCompilerId.cpp	1 May 2007 18:35:55 -0000	1.4
+++ CMakeCXXCompilerId.cpp	17 May 2007 12:38:07 -0000	1.5
@@ -48,5 +48,9 @@
 /* Make sure the information strings are referenced.  */
 int main()
 {
-  return ((int)&info_compiler) + ((int)&info_platform);
+  if(&info_compiler[0] != &info_platform[0])
+    {
+    return 1;
+    }
+  return 0;
 }



More information about the Cmake-commits mailing list