diff options
author | Brad King <brad.king@kitware.com> | 2005-04-07 17:48:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-07 17:48:20 (GMT) |
commit | 1c73f2f743f184f90c67ca4c715be67dd35f93d7 (patch) | |
tree | d2e5fee2c0ecb286f020e5778e2ff0e6f3ed1d88 | |
parent | 76f905002617dd534df04f1c1c0842d59f50f531 (diff) | |
download | CMake-1c73f2f743f184f90c67ca4c715be67dd35f93d7.zip CMake-1c73f2f743f184f90c67ca4c715be67dd35f93d7.tar.gz CMake-1c73f2f743f184f90c67ca4c715be67dd35f93d7.tar.bz2 |
BUG: Fix rule name for subdirectory traversal to use relative paths. This was broken by the recent subdirectory changes.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 1524b51..6b7f547 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -1313,18 +1313,19 @@ cmLocalUnixMakefileGenerator2 { if(!(*i)->GetExcludeAll()) { + // Construct the name of the subdirectory relative to this + // directory. + std::string subdir = + this->ConvertToRelativePath((*i)->GetMakefile()->GetStartOutputDirectory()); + // Add the subdirectory rule either for pre-order or post-order. if((*i)->GetMakefile()->GetPreOrder()) { - this->WriteSubdirRule(makefileStream, pass, - (*i)->GetMakefile()->GetStartOutputDirectory(), - lastPre); + this->WriteSubdirRule(makefileStream, pass, subdir.c_str(), lastPre); } else { - this->WriteSubdirRule(makefileStream, pass, - (*i)->GetMakefile()->GetStartOutputDirectory(), - lastPost); + this->WriteSubdirRule(makefileStream, pass, subdir.c_str(), lastPost); } } } |