diff options
-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; } |