From 0c7130905d3e32dd521bbcbf043c589ef5b6b1e5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 17 May 2007 08:38:07 -0400 Subject: BUG: make sure this thing compiles on 64 bit machines --- Modules/CMakeCXXCompilerId.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit v0.12