From 3374d12ff0c4b47254a9956813fea4fac447b8f7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 13 Mar 2008 17:38:51 -0400 Subject: BUG: Fix impl of CMP0005 regex to match value-less definitions. --- Source/cmMakefile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e605d37..f09c605 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1024,7 +1024,7 @@ bool cmMakefile::ParseDefineFlag(std::string const& def, bool remove) { // Create a regular expression to match valid definitions. static cmsys::RegularExpression - valid("^[-/]D[A-Za-z_][A-Za-z0-9_]*(=.*)$"); + valid("^[-/]D[A-Za-z_][A-Za-z0-9_]*(=.*)?$"); // Make sure the definition matches. if(!valid.find(def.c_str())) -- cgit v0.12