backwards MATCHES in if and else statements
This commit is contained in:
parent
68cfb4c8f4
commit
c151f30861
@ -100,7 +100,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string>& args)
|
|||||||
cmRegularExpression regEntry(args[2].c_str());
|
cmRegularExpression regEntry(args[2].c_str());
|
||||||
|
|
||||||
// check for black line or comment
|
// check for black line or comment
|
||||||
if (!regEntry.find(def))
|
if (regEntry.find(def))
|
||||||
{
|
{
|
||||||
f = new cmIfFunctionBlocker();
|
f = new cmIfFunctionBlocker();
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ bool cmIfCommand::InitialPass(std::vector<std::string>& args)
|
|||||||
cmRegularExpression regEntry(args[2].c_str());
|
cmRegularExpression regEntry(args[2].c_str());
|
||||||
|
|
||||||
// check for black line or comment
|
// check for black line or comment
|
||||||
if (regEntry.find(def))
|
if (!regEntry.find(def))
|
||||||
{
|
{
|
||||||
f = new cmIfFunctionBlocker();
|
f = new cmIfFunctionBlocker();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user