diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-08-17 17:11:42 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-08-17 17:11:42 -0400 |
commit | c151f30861d83e8f0f1d3823fc14c7952c3c6555 (patch) | |
tree | 8ae790463d19653bf4eea947bccdfb2edecb7d9e | |
parent | 68cfb4c8f4442f14600e8159a4ea38734a0e60b4 (diff) | |
download | cmake-c151f30861d83e8f0f1d3823fc14c7952c3c6555.tar.gz |
backwards MATCHES in if and else statements
-rw-r--r-- | Source/cmElseCommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmIfCommand.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index 2117c397a9..0f35203a92 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -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(); } diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 9a0fc014ac..85a59dbf04 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -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(); } |