summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-05-17 12:38:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-05-17 12:38:07 (GMT)
commit0c7130905d3e32dd521bbcbf043c589ef5b6b1e5 (patch)
tree0c376ce4a72e4d39198dc77b73a0e9b7f504e302 /Modules
parent6a271a4bfb953322d74cab67da687c17793292e1 (diff)
downloadCMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.zip
CMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.tar.gz
CMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.tar.bz2
BUG: make sure this thing compiles on 64 bit machines
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeCXXCompilerId.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp b/Modules/CMakeCXXCompilerId.cpp
index 183950f..51788b6 100644
--- a/Modules/CMakeCXXCompilerId.cpp
+++ b/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;
}