diff options
author | Brad King <brad.king@kitware.com> | 2008-10-09 19:30:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-09 19:30:07 (GMT) |
commit | ad44a41a187fc3a1b829397e1c9f7c5f305c084b (patch) | |
tree | 39e49f9e554aa602fae42ff084cf628a81f9166a /Source/cmLocalUnixMakefileGenerator3.h | |
parent | 416bf5730f33b5760bbcea9b4fb871cc9d717c6a (diff) | |
download | CMake-ad44a41a187fc3a1b829397e1c9f7c5f305c084b.zip CMake-ad44a41a187fc3a1b829397e1c9f7c5f305c084b.tar.gz CMake-ad44a41a187fc3a1b829397e1c9f7c5f305c084b.tar.bz2 |
ENH: Fix optional use of relative paths.
These changes refactor cmLocalGenerator methods Convert and
ConvertToOutputForExisting to support references inside the build tree
using relative paths. After this commit, all tests pass with Makefile
generators when relative paths are enabled by default. See issue #7779.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h index d321643..220aaa8 100644 --- a/Source/cmLocalUnixMakefileGenerator3.h +++ b/Source/cmLocalUnixMakefileGenerator3.h @@ -197,7 +197,8 @@ public: // create a command that cds to the start dir then runs the commands void CreateCDCommand(std::vector<std::string>& commands, - const char *targetDir, const char *returnDir); + const char *targetDir, + cmLocalGenerator::RelativeRoot returnDir); static std::string ConvertToQuotedOutputPath(const char* p); @@ -321,10 +322,14 @@ protected: void AppendCustomDepend(std::vector<std::string>& depends, const cmCustomCommand& cc); void AppendCustomCommands(std::vector<std::string>& commands, - const std::vector<cmCustomCommand>& ccs); + const std::vector<cmCustomCommand>& ccs, + cmLocalGenerator::RelativeRoot relative = + cmLocalGenerator::HOME_OUTPUT); void AppendCustomCommand(std::vector<std::string>& commands, const cmCustomCommand& cc, - bool echo_comment=false); + bool echo_comment=false, + cmLocalGenerator::RelativeRoot relative = + cmLocalGenerator::HOME_OUTPUT); void AppendCleanCommand(std::vector<std::string>& commands, const std::vector<std::string>& files, cmTarget& target, const char* filename =0); |