Browse Source

BUG: make sure this thing compiles on 64 bit machines

Bill Hoffman 18 years ago
parent
commit
0c7130905d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Modules/CMakeCXXCompilerId.cpp

+ 5 - 1
Modules/CMakeCXXCompilerId.cpp

@@ -48,5 +48,9 @@ static char const info_compiler[] = "INFO:compiler["
 /* 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;
 }