From c151f30861d83e8f0f1d3823fc14c7952c3c6555 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 17 Aug 2001 17:11:42 -0400 Subject: backwards MATCHES in if and else statements --- Source/cmElseCommand.cxx | 2 +- Source/cmIfCommand.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index 2117c39..0f35203 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -100,7 +100,7 @@ bool cmElseCommand::InitialPass(std::vector& args) cmRegularExpression regEntry(args[2].c_str()); // check for black line or comment - if (!regEntry.find(def)) + if (regEntry.find(def)) { f = new cmIfFunctionBlocker(); } diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 9a0fc01..85a59db 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -128,7 +128,7 @@ bool cmIfCommand::InitialPass(std::vector& args) cmRegularExpression regEntry(args[2].c_str()); // check for black line or comment - if (regEntry.find(def)) + if (!regEntry.find(def)) { f = new cmIfFunctionBlocker(); } -- cgit v0.12