summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-08 21:17:16 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-22 18:25:46 (GMT)
commitb2de25adeda1c37c8d626432df25fce7cd2ab032 (patch)
tree87f4f94fe56347da9c5d5c6e72a3a74b3d5c97a1 /Source/cmMakefile.cxx
parentd6239507b2f08bd1fee53c84af3998a14fa9819b (diff)
downloadCMake-b2de25adeda1c37c8d626432df25fce7cd2ab032.zip
CMake-b2de25adeda1c37c8d626432df25fce7cd2ab032.tar.gz
CMake-b2de25adeda1c37c8d626432df25fce7cd2ab032.tar.bz2
cmMakefile: Split accessors for compile options and origins.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx20
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