diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-05-10 18:43:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-05-10 18:43:55 (GMT) |
commit | 76dd86b410d0b09e33d2a93d0b4a27b4a8ee7016 (patch) | |
tree | 6e81c6636ecb286373ce65b320843b4c8e80b6d3 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 0577543cbc8168ffe74bef808a084e339e0929f2 (diff) | |
download | CMake-76dd86b410d0b09e33d2a93d0b4a27b4a8ee7016.zip CMake-76dd86b410d0b09e33d2a93d0b4a27b4a8ee7016.tar.gz CMake-76dd86b410d0b09e33d2a93d0b4a27b4a8ee7016.tar.bz2 |
BUG: fix -D escaped quotes for watcom
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index a48bebb..5370750 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -806,6 +806,23 @@ cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory(cmTarget& target) //---------------------------------------------------------------------------- +void cmLocalUnixMakefileGenerator3::AppendFlags(std::string& flags, + const char* newFlags) +{ + if(this->WatcomWMake && newFlags && *newFlags) + { + std::string newf = newFlags; + if(newf.find("\\\"") != newf.npos) + { + cmSystemTools::ReplaceString(newf, "\\\"", "\""); + this->cmLocalGenerator::AppendFlags(flags, newf.c_str()); + return; + } + } + this->cmLocalGenerator::AppendFlags(flags, newFlags); +} + +//---------------------------------------------------------------------------- void cmLocalUnixMakefileGenerator3 ::AppendRuleDepend(std::vector<std::string>& depends, |