summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-08 21:11:22 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-22 18:25:45 (GMT)
commitd6239507b2f08bd1fee53c84af3998a14fa9819b (patch)
treec5f4e81fe9f2149498b27de03e5ab5f281bb1ce5 /Source/cmGlobalGenerator.cxx
parentef17bbefd7c504af65f2e6c52f5d7fa8e82d087e (diff)
downloadCMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.zip
CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.gz
CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.bz2
cmMakefile: Split accessors for compile definitions and origins.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 88ac0bc..2c5ed4f 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1417,8 +1417,10 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
{
cmMakefile *mf = this->LocalGenerators[i]->GetMakefile();
- const std::vector<cmValueWithOrigin> noconfig_compile_definitions =
+ const std::vector<std::string> noconfig_compile_definitions =
mf->GetCompileDefinitionsEntries();
+ const std::vector<cmListFileBacktrace> noconfig_compile_definitions_bts =
+ mf->GetCompileDefinitionsBacktraces();
cmTargets& targets = mf->GetTargets();
for(cmTargets::iterator ti = targets.begin();
@@ -1433,11 +1435,13 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
continue;
}
- for (std::vector<cmValueWithOrigin>::const_iterator it
+ std::vector<cmListFileBacktrace>::const_iterator btIt
+ = noconfig_compile_definitions_bts.begin();
+ for (std::vector<std::string>::const_iterator it
= noconfig_compile_definitions.begin();
- it != noconfig_compile_definitions.end(); ++it)
+ it != noconfig_compile_definitions.end(); ++it, ++btIt)
{
- t->InsertCompileDefinition(*it);
+ t->InsertCompileDefinition(*it, *btIt);
}
cmPolicies::PolicyStatus polSt