From 03d55fb4c7be3a691ca4b8c61f9f3a20e64a0e3e Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 12 Oct 2009 13:37:09 -0400 Subject: [PATCH] fix #9687 The CodeBlocks generator did not put all cmake files into the cmake tree of the generated project. Patch from Daniel Teske. Alex --- Source/cmExtraCodeBlocksGenerator.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index f27226228..7f2605fba 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -263,11 +263,19 @@ void cmExtraCodeBlocksGenerator it != this->GlobalGenerator->GetProjectMap().end(); ++it) { - // Convert - std::vector listFiles = - it->second[0]->GetMakefile()->GetListFiles(); + // Collect all files + std::vector listFiles; + for (std::vector::const_iterator + jt = it->second.begin(); + jt != it->second.end(); + ++jt) + { + const std::vector & files = (*jt)->GetMakefile()->GetListFiles(); + listFiles.insert(listFiles.end(), files.begin(), files.end()); + } - for (std::vector::const_iterator jt = listFiles.begin(); + // Convert + for (std::vector::const_iterator jt = listFiles.begin(); jt != listFiles.end(); ++jt) {