The CodeBlocks generator did not put all cmake files into the cmake tree of
the generated project. Patch from Daniel Teske.

Alex
This commit is contained in:
Alexander Neundorf 2009-10-12 13:37:09 -04:00
parent bf0e67fea3
commit 03d55fb4c7
1 changed files with 12 additions and 4 deletions

View File

@ -263,11 +263,19 @@ void cmExtraCodeBlocksGenerator
it != this->GlobalGenerator->GetProjectMap().end(); it != this->GlobalGenerator->GetProjectMap().end();
++it) ++it)
{ {
// Convert // Collect all files
std::vector<std::string> listFiles = std::vector<std::string> listFiles;
it->second[0]->GetMakefile()->GetListFiles(); 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 != listFiles.end();
++jt) ++jt)
{ {