backwards MATCHES in if and else statements

This commit is contained in:
Ken Martin 2001-08-17 17:11:42 -04:00
parent 68cfb4c8f4
commit c151f30861
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string>& args)
cmRegularExpression regEntry(args[2].c_str());
// check for black line or comment
if (!regEntry.find(def))
if (regEntry.find(def))
{
f = new cmIfFunctionBlocker();
}

View File

@ -128,7 +128,7 @@ bool cmIfCommand::InitialPass(std::vector<std::string>& args)
cmRegularExpression regEntry(args[2].c_str());
// check for black line or comment
if (regEntry.find(def))
if (!regEntry.find(def))
{
f = new cmIfFunctionBlocker();
}