diff options
author | Brad King <brad.king@kitware.com> | 2008-03-13 21:38:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-13 21:38:51 (GMT) |
commit | 3374d12ff0c4b47254a9956813fea4fac447b8f7 (patch) | |
tree | f191a16ed7649833ae6a0f8e317af7bd63e3681b | |
parent | a340fd42b8472cd0379334c26a5b7c9059630917 (diff) | |
download | CMake-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.cxx | 2 |
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())) |