浏览代码

BUG: fix logic in EQUAL if test

Bill Hoffman 21 年之前
父节点
当前提交
c472345346
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmIfCommand.cxx

+ 1 - 1
Source/cmIfCommand.cxx

@@ -263,7 +263,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
     {
     {
     def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile);
     def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile);
     def2 = cmIfCommand::GetVariableOrString(args[2].c_str(), makefile);
     def2 = cmIfCommand::GetVariableOrString(args[2].c_str(), makefile);
-    if(atof(def) == atof(def2))
+    if(atof(def) != atof(def2))
       {
       {
       isTrue = false;
       isTrue = false;
       }
       }