diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index ddfd32e26..e0894c6c9 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -67,54 +67,15 @@ void cmExtraCodeBlocksGenerator::SetGlobalGenerator( void cmExtraCodeBlocksGenerator::Generate() { - - const cmMakefile* topLevelMakefile = - this->GlobalGenerator->GetLocalGenerators()[0]->GetMakefile(); - - std::string workspaceName = topLevelMakefile->GetProjectName(); - std::string outputDir=topLevelMakefile->GetStartOutputDirectory(); - std::string workspaceFilename = outputDir; - workspaceFilename += "/"; - workspaceFilename += workspaceName; - workspaceFilename += ".workspace"; - - cmGeneratedFileStream fout(workspaceFilename.c_str()); - if(!fout) - { - return; - } - - fout<<"\n" - "\n" - " \n"; - - bool firstProject = true; // for each sub project in the project create a codeblocks project for (std::map >::const_iterator it = this->GlobalGenerator->GetProjectMap().begin(); it!= this->GlobalGenerator->GetProjectMap().end(); ++it) { - const cmMakefile* mf=it->second[0]->GetMakefile(); - std::string filename=mf->GetStartOutputDirectory(); - filename+="/"; - filename+=mf->GetProjectName(); - filename+=".cbp"; - - if (firstProject) - { - fout<<" \n"; - } - else - { - fout<<" \n"; - } // create a project file this->CreateProjectFile(it->second); } - - fout<<" \n" - "\n"; }