summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-10-12 17:37:09 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-10-12 17:37:09 (GMT)
commit03d55fb4c7be3a691ca4b8c61f9f3a20e64a0e3e (patch)
treee84c2dc728f09ec1be64b78103399376ea266de8 /Source/cmExtraCodeBlocksGenerator.cxx
parentbf0e67fea334cb0c0afdfec155d762b4891cadc9 (diff)
downloadCMake-03d55fb4c7be3a691ca4b8c61f9f3a20e64a0e3e.zip
CMake-03d55fb4c7be3a691ca4b8c61f9f3a20e64a0e3e.tar.gz
CMake-03d55fb4c7be3a691ca4b8c61f9f3a20e64a0e3e.tar.bz2
fix #9687
The CodeBlocks generator did not put all cmake files into the cmake tree of the generated project. Patch from Daniel Teske. Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index f272262..7f2605f 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -263,11 +263,19 @@ void cmExtraCodeBlocksGenerator
it != this->GlobalGenerator->GetProjectMap().end();
++it)
{
- // Convert
- std::vector<std::string> listFiles =
- it->second[0]->GetMakefile()->GetListFiles();
+ // Collect all files
+ std::vector<std::string> listFiles;
+ for (std::vector<cmLocalGenerator *>::const_iterator
+ jt = it->second.begin();
+ jt != it->second.end();
+ ++jt)
+ {
+ const std::vector<std::string> & files = (*jt)->GetMakefile()->GetListFiles();
+ listFiles.insert(listFiles.end(), files.begin(), files.end());
+ }
- for (std::vector<std::string>::const_iterator jt = listFiles.begin();
+ // Convert
+ for (std::vector<std::string>::const_iterator jt = listFiles.begin();
jt != listFiles.end();
++jt)
{