summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-11-18 03:46:21 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-11-21 14:42:58 (GMT)
commitee4e85e615aa21323f4d5c88a162e4ddc1e83c46 (patch)
tree50611438ec1a1757df424f3bf4f7f5d9f1f4cb1e
parentb34a8fcb8ef434183c1a5ab26b46165a854822a9 (diff)
downloadCMake-ee4e85e615aa21323f4d5c88a162e4ddc1e83c46.zip
CMake-ee4e85e615aa21323f4d5c88a162e4ddc1e83c46.tar.gz
CMake-ee4e85e615aa21323f4d5c88a162e4ddc1e83c46.tar.bz2
cmGeneratorTarget: use pointers to `const` generator targets for languages
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 372caab..333ed07 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -8044,7 +8044,7 @@ void cmGeneratorTarget::GetLanguages(std::set<std::string>& languages,
}
}
- std::set<cmGeneratorTarget*> objectLibraries;
+ std::set<cmGeneratorTarget const*> objectLibraries;
if (!this->GlobalGenerator->GetConfigureDoneCMP0026()) {
std::vector<cmGeneratorTarget*> objectTargets;
this->GetObjectLibrariesCMP0026(objectTargets);
@@ -8062,7 +8062,7 @@ void cmGeneratorTarget::GetLanguages(std::set<std::string>& languages,
}
}
}
- for (cmGeneratorTarget* objLib : objectLibraries) {
+ for (cmGeneratorTarget const* objLib : objectLibraries) {
objLib->GetLanguages(languages, config);
}
}