summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-08-17 21:11:42 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-08-17 21:11:42 (GMT)
commitc151f30861d83e8f0f1d3823fc14c7952c3c6555 (patch)
tree8ae790463d19653bf4eea947bccdfb2edecb7d9e /Source/cmIfCommand.cxx
parent68cfb4c8f4442f14600e8159a4ea38734a0e60b4 (diff)
downloadCMake-c151f30861d83e8f0f1d3823fc14c7952c3c6555.zip
CMake-c151f30861d83e8f0f1d3823fc14c7952c3c6555.tar.gz
CMake-c151f30861d83e8f0f1d3823fc14c7952c3c6555.tar.bz2
backwards MATCHES in if and else statements
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
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<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();
}