summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-28 13:59:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-28 13:59:16 (GMT)
commitc472345346fc6be94299f40f13222b8c8f538abe (patch)
treea9815fb9a6df2ddb4c9a52b5774ab4f544ecb944 /Source/cmIfCommand.cxx
parent79269fc5a9dab7be97918e522accfaf48545ff88 (diff)
downloadCMake-c472345346fc6be94299f40f13222b8c8f538abe.zip
CMake-c472345346fc6be94299f40f13222b8c8f538abe.tar.gz
CMake-c472345346fc6be94299f40f13222b8c8f538abe.tar.bz2
BUG: fix logic in EQUAL if test
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 830e1ba..1d9bbf9 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -263,7 +263,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
{
def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile);
def2 = cmIfCommand::GetVariableOrString(args[2].c_str(), makefile);
- if(atof(def) == atof(def2))
+ if(atof(def) != atof(def2))
{
isTrue = false;
}