mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
Source: Modernize for loops, add const modifiers
This commit is contained in:
@@ -59,18 +59,17 @@ void cmExtraCodeLiteGenerator::Generate()
|
||||
// and extract the information for creating the worspace
|
||||
// root makefile
|
||||
for (auto const& it : projectMap) {
|
||||
const cmMakefile* mf = it.second[0]->GetMakefile();
|
||||
cmLocalGenerator* lg = it.second[0];
|
||||
const cmMakefile* mf = lg->GetMakefile();
|
||||
this->ConfigName = GetConfigurationName(mf);
|
||||
|
||||
if (it.second[0]->GetCurrentBinaryDirectory() ==
|
||||
it.second[0]->GetBinaryDirectory()) {
|
||||
workspaceOutputDir = it.second[0]->GetCurrentBinaryDirectory();
|
||||
workspaceProjectName = it.second[0]->GetProjectName();
|
||||
workspaceSourcePath = it.second[0]->GetSourceDirectory();
|
||||
if (lg->GetCurrentBinaryDirectory() == lg->GetBinaryDirectory()) {
|
||||
workspaceOutputDir = lg->GetCurrentBinaryDirectory();
|
||||
workspaceProjectName = lg->GetProjectName();
|
||||
workspaceSourcePath = lg->GetSourceDirectory();
|
||||
workspaceFileName = workspaceOutputDir + "/";
|
||||
workspaceFileName += workspaceProjectName + ".workspace";
|
||||
this->WorkspacePath = it.second[0]->GetCurrentBinaryDirectory();
|
||||
;
|
||||
this->WorkspacePath = lg->GetCurrentBinaryDirectory();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user