diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c705e7d..8276faa 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -288,19 +288,15 @@ std::vector<cmValueWithOrigin> cmMakefile::GetIncludeDirectoriesEntries() const return entries; } -std::vector<cmValueWithOrigin> cmMakefile::GetCompileOptionsEntries() const +std::vector<std::string> cmMakefile::GetCompileOptionsEntries() const { - std::vector<cmValueWithOrigin> entries; - entries.reserve(this->CompileOptionsEntries.size()); - std::vector<cmListFileBacktrace>::const_iterator btIt = - this->CompileOptionsEntryBacktraces.begin(); - for(std::vector<std::string>::const_iterator it = - this->CompileOptionsEntries.begin(); - it != this->CompileOptionsEntries.end(); ++it, ++btIt) - { - entries.push_back(cmValueWithOrigin(*it, *btIt)); - } - return entries; + return this->CompileOptionsEntries; +} + +std::vector<cmListFileBacktrace> +cmMakefile::GetCompileOptionsBacktraces() const +{ + return this->CompileOptionsEntryBacktraces; } std::vector<std::string> cmMakefile::GetCompileDefinitionsEntries() const |