diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-05-17 12:38:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-05-17 12:38:07 (GMT) |
commit | 0c7130905d3e32dd521bbcbf043c589ef5b6b1e5 (patch) | |
tree | 0c376ce4a72e4d39198dc77b73a0e9b7f504e302 /Modules/CMakeCXXCompilerId.cpp | |
parent | 6a271a4bfb953322d74cab67da687c17793292e1 (diff) | |
download | CMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.zip CMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.tar.gz CMake-0c7130905d3e32dd521bbcbf043c589ef5b6b1e5.tar.bz2 |
BUG: make sure this thing compiles on 64 bit machines
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp')
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp | 6 |
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; } |