mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
cmLocalGenerator: Add Home directory accessors.
Reduce reasons for cmLocalGenerator to have a cmMakefile.
This commit is contained in:
@@ -68,7 +68,9 @@ cmGhsMultiTargetGenerator::GetRelBuildFilePath(const cmTarget *target)
|
||||
std::string
|
||||
cmGhsMultiTargetGenerator::GetAbsPathToRoot(const cmTarget *target)
|
||||
{
|
||||
return target->GetMakefile()->GetHomeOutputDirectory();
|
||||
cmGeneratorTarget* gt = target->GetMakefile()->GetGlobalGenerator()
|
||||
->GetGeneratorTarget(target);
|
||||
return gt->GetLocalGenerator()->GetBinaryDirectory();
|
||||
}
|
||||
|
||||
std::string
|
||||
@@ -450,7 +452,7 @@ void cmGhsMultiTargetGenerator::WriteSources(
|
||||
cmSystemTools::ConvertToUnixSlashes(sgPath);
|
||||
cmGlobalGhsMultiGenerator::AddFilesUpToPath(
|
||||
this->GetFolderBuildStreams(), &this->FolderBuildStreams,
|
||||
this->Makefile->GetHomeOutputDirectory(), sgPath,
|
||||
this->LocalGenerator->GetBinaryDirectory(), sgPath,
|
||||
GhsMultiGpj::SUBPROJECT, this->RelBuildFilePath);
|
||||
|
||||
std::string fullSourcePath((*si)->GetFullPath());
|
||||
|
||||
Reference in New Issue
Block a user