浏览代码

BUG: make sure this thing compiles on 64 bit machines

Bill Hoffman 18 年之前
父节点
当前提交
0c7130905d
共有 1 个文件被更改,包括 5 次插入1 次删除
  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;
 }