diff options
author | Brad King <brad.king@kitware.com> | 2007-03-08 18:19:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-08 18:19:39 (GMT) |
commit | d65db7c6bb7959662fa9a3805c50d7605b9aecc0 (patch) | |
tree | 22f5de6b243cb6873cabeb897952cc888f6f5bd4 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 1d75e47dee360593e7ad48a87af261b45e8a2968 (diff) | |
download | CMake-d65db7c6bb7959662fa9a3805c50d7605b9aecc0.zip CMake-d65db7c6bb7959662fa9a3805c50d7605b9aecc0.tar.gz CMake-d65db7c6bb7959662fa9a3805c50d7605b9aecc0.tar.bz2 |
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.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 2d45ee9..3c616ed 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -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 += "/"; } |