diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-28 13:00:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-28 13:00:10 (GMT) |
commit | e841dde6c3a9229d53c8d2fdf00ce5073cadf016 (patch) | |
tree | fea3828f9eecd82116c1cda09429f99d7dd81d16 /Source/cmMakefileTargetGenerator.cxx | |
parent | e6d820ed49dfa56f7ed7df2fa09db7828a57fcae (diff) | |
download | CMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.zip CMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.tar.gz CMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.tar.bz2 |
ENH: merge changes from main tree
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index a73213a..bf8422a 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -562,6 +562,17 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() cmOStringStream depCmd; // TODO: Account for source file properties and directory-level // definitions when scanning for dependencies. +#if !defined(_WIN32) || defined(__CYGWIN__) + // This platform supports symlinks, so cmSystemTools will translate + // paths. Make sure PWD is set to the original name of the home + // output directory to help cmSystemTools to create the same + // translation table for the dependency scanning process. + depCmd << "cd " + << (this->LocalGenerator->Convert( + this->Makefile->GetHomeOutputDirectory(), + cmLocalGenerator::FULL, cmLocalGenerator::SHELL)) + << " && "; +#endif depCmd << "$(CMAKE_COMMAND) -E cmake_depends " << " \"" << this->GlobalGenerator->GetName() << "\" " |