mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
BUG: Compute HomeRelativeOutputPath following the rules of RelativePathTopBinary by going through the Convert() method. This supports out-of-binary build trees without using relative paths that go outside trees managed by CMake.
This commit is contained in:
parent
1d75e47dee
commit
d65db7c6bb
@ -64,11 +64,11 @@ cmLocalUnixMakefileGenerator3::~cmLocalUnixMakefileGenerator3()
|
||||
//----------------------------------------------------------------------------
|
||||
void cmLocalUnixMakefileGenerator3::Configure()
|
||||
{
|
||||
// Include the rule file for each object.
|
||||
this->HomeRelativeOutputPath =
|
||||
cmSystemTools::RelativePath(this->Makefile->GetHomeOutputDirectory(),
|
||||
this->Makefile->GetStartOutputDirectory());
|
||||
if (this->HomeRelativeOutputPath.size())
|
||||
// Compute the path to use when referencing the current output
|
||||
// directory from the top output directory.
|
||||
this->HomeRelativeOutputPath =
|
||||
this->Convert(this->Makefile->GetStartOutputDirectory(), HOME_OUTPUT);
|
||||
if(!this->HomeRelativeOutputPath.empty())
|
||||
{
|
||||
this->HomeRelativeOutputPath += "/";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user