summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXCompilerId.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-05-17 14:07:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-05-17 14:07:51 (GMT)
commit871f7cf2220906169bf1f7aebdf508c2e57ba2e1 (patch)
treed74b617827f536ceea81c05dda2f7829645942c8 /Modules/CMakeCXXCompilerId.cpp
parent0c7130905d3e32dd521bbcbf043c589ef5b6b1e5 (diff)
downloadCMake-871f7cf2220906169bf1f7aebdf508c2e57ba2e1.zip
CMake-871f7cf2220906169bf1f7aebdf508c2e57ba2e1.tar.gz
CMake-871f7cf2220906169bf1f7aebdf508c2e57ba2e1.tar.bz2
ENH: fix up compiler id to be more robust
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp')
-rw-r--r--Modules/CMakeCXXCompilerId.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp b/Modules/CMakeCXXCompilerId.cpp
index 51788b6..0d8e32a 100644
--- a/Modules/CMakeCXXCompilerId.cpp
+++ b/Modules/CMakeCXXCompilerId.cpp
@@ -48,9 +48,5 @@ static char const info_compiler[] = "INFO:compiler["
/* Make sure the information strings are referenced. */
int main()
{
- if(&info_compiler[0] != &info_platform[0])
- {
- return 1;
- }
- return 0;
+ return (&info_compiler[0] != &info_platform[0]);
}