diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-14 18:22:57 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-09 19:38:08 +0100 |
commit | 531e40b95e80fbf5547b0a8d71196e819bb3aa3d (patch) | |
tree | c1b9f09d329496f511135c9665275e8fc21f6ccf /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | 38de54cf6f3daae70792fae1bf26b97bccc78de4 (diff) | |
download | cmake-531e40b95e80fbf5547b0a8d71196e819bb3aa3d.tar.gz |
cmTarget: Make GetSourceFiles populate an out-vector parameter.
In a future patch, this will also be populated with extra
sources from the linked dependencies.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index c93187e7f2..3e9b786032 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -559,7 +559,8 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets( std::vector<cmSourceGroup> sourceGroups=makefile->GetSourceGroups(); // get the files from the source lists then add them to the groups cmTarget* tgt = const_cast<cmTarget*>(&ti->second); - std::vector<cmSourceFile*>const & files = tgt->GetSourceFiles(); + std::vector<cmSourceFile*> files; + tgt->GetSourceFiles(files); for(std::vector<cmSourceFile*>::const_iterator sfIt = files.begin(); sfIt != files.end(); sfIt++) |