summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-13 21:38:51 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-13 21:38:51 (GMT)
commit3374d12ff0c4b47254a9956813fea4fac447b8f7 (patch)
treef191a16ed7649833ae6a0f8e317af7bd63e3681b
parenta340fd42b8472cd0379334c26a5b7c9059630917 (diff)
downloadCMake-3374d12ff0c4b47254a9956813fea4fac447b8f7.zip
CMake-3374d12ff0c4b47254a9956813fea4fac447b8f7.tar.gz
CMake-3374d12ff0c4b47254a9956813fea4fac447b8f7.tar.bz2
BUG: Fix impl of CMP0005 regex to match value-less definitions.
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
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()))