BUG: Fix impl of CMP0005 regex to match value-less definitions.

This commit is contained in:
Brad King 2008-03-13 17:38:51 -04:00
parent a340fd42b8
commit 3374d12ff0
1 changed files with 1 additions and 1 deletions

View File

@ -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()))