summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index cf925df..830e1ba 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -259,6 +259,17 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
isValid = true;
}
+ if (args.size() == 3 && (args[1] == "EQUAL"))
+ {
+ def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile);
+ def2 = cmIfCommand::GetVariableOrString(args[2].c_str(), makefile);
+ if(atof(def) == atof(def2))
+ {
+ isTrue = false;
+ }
+ isValid = true;
+ }
+
if (args.size() == 3 && (args[1] == "STRLESS"))
{
def = cmIfCommand::GetVariableOrString(args[0].c_str(), makefile);