cmLocalUnixMakefileGenerator3: Port API to cmGenertorTarget.
This commit is contained in:
parent
088fcbf733
commit
9f299a1225
|
@ -209,7 +209,7 @@ GetLocalObjectFiles(std::map<std::string, LocalObjectInfo> &localObjectFiles)
|
|||
}
|
||||
LocalObjectInfo& info = localObjectFiles[objectName];
|
||||
info.HasSourceExtension = hasSourceExtension;
|
||||
info.push_back(LocalObjectEntry(gt->Target, sf->GetLanguage()));
|
||||
info.push_back(LocalObjectEntry(gt, sf->GetLanguage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -389,7 +389,7 @@ cmLocalUnixMakefileGenerator3
|
|||
t != info.end(); ++t)
|
||||
{
|
||||
std::string tgtMakefileName =
|
||||
this->GetRelativeTargetDirectory(*(t->Target));
|
||||
this->GetRelativeTargetDirectory(*(t->Target->Target));
|
||||
std::string targetName = tgtMakefileName;
|
||||
tgtMakefileName += "/build.make";
|
||||
targetName += "/";
|
||||
|
|
|
@ -254,10 +254,10 @@ private:
|
|||
|
||||
struct LocalObjectEntry
|
||||
{
|
||||
cmTarget* Target;
|
||||
cmGeneratorTarget* Target;
|
||||
std::string Language;
|
||||
LocalObjectEntry(): Target(0), Language() {}
|
||||
LocalObjectEntry(cmTarget* t, const std::string& lang):
|
||||
LocalObjectEntry(cmGeneratorTarget* t, const std::string& lang):
|
||||
Target(t), Language(lang) {}
|
||||
};
|
||||
struct LocalObjectInfo: public std::vector<LocalObjectEntry>
|
||||
|
|
Loading…
Reference in New Issue