From c0cd47a4029ebd903487ffca78a48a04f2de2fa4 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 18 Jan 2002 16:45:42 -0500 Subject: [PATCH] fix if logic for null defs --- Source/cmIfCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 37b3045513..874c77b597 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -170,7 +170,7 @@ bool cmIfCommand::InitialPass(std::vector const& args) cmRegularExpression regEntry(args[2].c_str()); // check for black line or comment - if (def && !regEntry.find(def)) + if (!def || !regEntry.find(def)) { f = new cmIfFunctionBlocker(); }