ENH: fix for dependent targets
This commit is contained in:
parent
6207dc41bd
commit
a6bf59baef
|
@ -867,7 +867,8 @@ cmGlobalUnixMakefileGenerator3
|
|||
progCmd << lg->Convert(progressDir.c_str(),
|
||||
cmLocalGenerator::FULL,
|
||||
cmLocalGenerator::SHELL);
|
||||
progCmd << " " << lg->ProgressFiles[t->first].size();
|
||||
//
|
||||
progCmd << " " << this->GetTargetTotalNumberOfProgressFiles(t->second);
|
||||
commands.push_back(progCmd.str());
|
||||
}
|
||||
std::string tmp = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||
|
@ -938,15 +939,18 @@ cmGlobalUnixMakefileGenerator3
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
int cmGlobalUnixMakefileGenerator3
|
||||
::GetTargetTotalNumberOfSourceFiles(cmTarget& target)
|
||||
::GetTargetTotalNumberOfProgressFiles(cmTarget& target)
|
||||
{
|
||||
int result = this->GetNumberOfCompilableSourceFilesForTarget(target);
|
||||
cmLocalUnixMakefileGenerator3 *lg =
|
||||
static_cast<cmLocalUnixMakefileGenerator3 *>
|
||||
(target.GetMakefile()->GetLocalGenerator());
|
||||
int result = lg->ProgressFiles[target.GetName()].size();
|
||||
std::vector<cmTarget *>& depends = this->GetTargetDepends(target);
|
||||
|
||||
std::vector<cmTarget *>::iterator i;
|
||||
for (i = depends.begin(); i != depends.end(); ++i)
|
||||
{
|
||||
result += this->GetTargetTotalNumberOfSourceFiles(**i);
|
||||
result += this->GetTargetTotalNumberOfProgressFiles(**i);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -126,7 +126,7 @@ public:
|
|||
// returns true if a progress rule should be added
|
||||
int ShouldAddProgressRule();
|
||||
int GetNumberOfCompilableSourceFilesForTarget(cmTarget &tgt);
|
||||
int GetTargetTotalNumberOfSourceFiles(cmTarget& target);
|
||||
int GetTargetTotalNumberOfProgressFiles(cmTarget& target);
|
||||
int GetNumberOfSourceFiles() { return this->NumberOfSourceFiles; };
|
||||
|
||||
// what targets does the specified target depend on
|
||||
|
|
Loading…
Reference in New Issue