diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-15 15:35:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-15 15:35:05 (GMT) |
commit | a17aff74c7a571657414a0b82e431bbefbbb857b (patch) | |
tree | de409a4bba8b5aef7a216ef7a1b0edb64e6cd51f /Source/cmStringCommand.cxx | |
parent | 02a114dfe8304e6fa90b9c6565349eb7e0fb1168 (diff) | |
download | CMake-a17aff74c7a571657414a0b82e431bbefbbb857b.zip CMake-a17aff74c7a571657414a0b82e431bbefbbb857b.tar.gz CMake-a17aff74c7a571657414a0b82e431bbefbbb857b.tar.bz2 |
Ignore CMAKE_MATCH_* variables for usage
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r-- | Source/cmStringCommand.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 19f5c0f..bab08fe 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -482,6 +482,7 @@ void cmStringCommand::ClearMatches(cmMakefile* mf) char name[128]; sprintf(name, "CMAKE_MATCH_%d", i); mf->AddDefinition(name, ""); + mf->MarkVariableAsUsed(name); } } @@ -493,6 +494,7 @@ void cmStringCommand::StoreMatches(cmMakefile* mf,cmsys::RegularExpression& re) char name[128]; sprintf(name, "CMAKE_MATCH_%d", i); mf->AddDefinition(name, re.match(i).c_str()); + mf->MarkVariableAsUsed(name); } } |