Rename local 'dir_max' variables to 'dir'
The code is not computing the maximum length directory, as is the case in cmLocalVisualStudioGenerator::ComputeLongestObjectDirectory.
This commit is contained in:
parent
fb4aff058d
commit
d83ef53a12
|
@ -639,12 +639,12 @@ void cmGlobalNinjaGenerator
|
|||
cmTarget* target = gt->Target;
|
||||
|
||||
// Compute full path to object file directory for this target.
|
||||
std::string dir_max;
|
||||
dir_max += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir_max += "/";
|
||||
dir_max += gt->LocalGenerator->GetTargetDirectory(*target);
|
||||
dir_max += "/";
|
||||
gt->ObjectDirectory = dir_max;
|
||||
std::string dir;
|
||||
dir += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir += "/";
|
||||
dir += gt->LocalGenerator->GetTargetDirectory(*target);
|
||||
dir += "/";
|
||||
gt->ObjectDirectory = dir;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
@ -111,12 +111,12 @@ cmGlobalUnixMakefileGenerator3
|
|||
cmTarget* target = gt->Target;
|
||||
|
||||
// Compute full path to object file directory for this target.
|
||||
std::string dir_max;
|
||||
dir_max += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir_max += "/";
|
||||
dir_max += gt->LocalGenerator->GetTargetDirectory(*target);
|
||||
dir_max += "/";
|
||||
gt->ObjectDirectory = dir_max;
|
||||
std::string dir;
|
||||
dir += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir += "/";
|
||||
dir += gt->LocalGenerator->GetTargetDirectory(*target);
|
||||
dir += "/";
|
||||
gt->ObjectDirectory = dir;
|
||||
}
|
||||
|
||||
void cmGlobalUnixMakefileGenerator3::Configure()
|
||||
|
|
|
@ -202,11 +202,11 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
|||
std::vector<cmSourceFile const*> objectSources;
|
||||
gt->GetObjectSources(objectSources);
|
||||
// Compute full path to object file directory for this target.
|
||||
std::string dir_max;
|
||||
dir_max += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir_max += "/";
|
||||
dir_max += this->GetTargetDirectory(*gt->Target);
|
||||
dir_max += "/";
|
||||
std::string dir;
|
||||
dir += gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir += "/";
|
||||
dir += this->GetTargetDirectory(*gt->Target);
|
||||
dir += "/";
|
||||
// Compute the name of each object file.
|
||||
for(std::vector<cmSourceFile const*>::iterator
|
||||
si = objectSources.begin();
|
||||
|
@ -215,7 +215,7 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
|||
cmSourceFile const* sf = *si;
|
||||
bool hasSourceExtension = true;
|
||||
std::string objectName = this->GetObjectFileNameWithoutTarget(*sf,
|
||||
dir_max,
|
||||
dir,
|
||||
&hasSourceExtension);
|
||||
if(cmSystemTools::FileIsFullPath(objectName.c_str()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue