summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-15 15:35:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-15 15:35:05 (GMT)
commita17aff74c7a571657414a0b82e431bbefbbb857b (patch)
treede409a4bba8b5aef7a216ef7a1b0edb64e6cd51f /Source/cmStringCommand.cxx
parent02a114dfe8304e6fa90b9c6565349eb7e0fb1168 (diff)
downloadCMake-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.cxx2
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);
}
}