summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-08-27 13:54:54 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-03 13:52:14 (GMT)
commitab94c369c9f653d249e5a48ccc43f2dd2d95bc56 (patch)
tree14421b0b0fb0f0b2461a2e73b73d8828da3e0d2b /Source/cmGlobalGenerator.cxx
parent80e0245e0e05c27dee316a9b53e23a4c0b12a9fe (diff)
downloadCMake-ab94c369c9f653d249e5a48ccc43f2dd2d95bc56.zip
CMake-ab94c369c9f653d249e5a48ccc43f2dd2d95bc56.tar.gz
CMake-ab94c369c9f653d249e5a48ccc43f2dd2d95bc56.tar.bz2
Refactor: Convert parallel string/backtrace vectors to BT vectors
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 3561deb..17cd95e 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1718,10 +1718,8 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
// Construct per-target generator information.
for (const auto& mf : this->Makefiles) {
- const cmStringRange noconfig_compile_definitions =
+ const cmBTStringRange noconfig_compile_definitions =
mf->GetCompileDefinitionsEntries();
- const cmBacktraceRange noconfig_compile_definitions_bts =
- mf->GetCompileDefinitionsBacktraces();
for (auto& target : mf->GetTargets()) {
cmTarget* t = &target.second;
@@ -1735,12 +1733,8 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
continue;
}
- {
- auto btIt = noconfig_compile_definitions_bts.begin();
- auto it = noconfig_compile_definitions.begin();
- for (; it != noconfig_compile_definitions.end(); ++it, ++btIt) {
- t->InsertCompileDefinition(*it, *btIt);
- }
+ for (auto const& def : noconfig_compile_definitions) {
+ t->InsertCompileDefinition(def);
}
cmPolicies::PolicyStatus polSt =