summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-26 14:36:07 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-28 18:27:38 (GMT)
commit18e42d3e63f7807495be8fc4c2159629a30c1144 (patch)
tree3faa0bbf7e464bebfc9891b22f1ce80c7e48267e /Source/cmGeneratorExpressionNode.cxx
parent687326946bdf9ba2710f80fa854083c39c729992 (diff)
downloadCMake-18e42d3e63f7807495be8fc4c2159629a30c1144.zip
CMake-18e42d3e63f7807495be8fc4c2159629a30c1144.tar.gz
CMake-18e42d3e63f7807495be8fc4c2159629a30c1144.tar.bz2
cmGeneratorExpressionNode: Constify local variable
Diffstat (limited to 'Source/cmGeneratorExpressionNode.cxx')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index 7125170..8030b64 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -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);
}