From a17aff74c7a571657414a0b82e431bbefbbb857b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 15 Sep 2010 11:35:05 -0400 Subject: [PATCH] Ignore CMAKE_MATCH_* variables for usage --- Source/cmStringCommand.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 19f5c0f22..bab08fee1 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); } }