1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 10:47:59 +08:00

cmGeneratorExpressionNode: Constify local variable

This commit is contained in:
Brad King
2021-05-26 10:36:07 -04:00
parent 687326946b
commit 18e42d3e63

View File

@@ -1681,7 +1681,7 @@ static const struct TargetObjectsNode : public cmGeneratorExpressionNode
// Create the cmSourceFile instances in the referencing directory.
cmMakefile* mf = context->LG->GetMakefile();
for (std::string& o : objects) {
for (std::string const& o : objects) {
mf->AddTargetObject(tgtName, o);
}