summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-11-05 16:18:15 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-11-05 16:18:15 (GMT)
commit34853be45a238b700201a8ff0245bfb124e6aded (patch)
treec7b2bd8a7e33c0f4bccedd25fc6eac6394601e9e /Source/cmLocalUnixMakefileGenerator.cxx
parent251032b1906f1d9a311449182184db72de6bccae (diff)
downloadCMake-34853be45a238b700201a8ff0245bfb124e6aded.zip
CMake-34853be45a238b700201a8ff0245bfb124e6aded.tar.gz
CMake-34853be45a238b700201a8ff0245bfb124e6aded.tar.bz2
BUG: fix for bug 346, borland should now support dash in the path
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 3c23d91..82805df 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -928,7 +928,15 @@ cmLocalUnixMakefileGenerator::ExpandRuleVariables(std::string& s,
cmSystemTools::ReplaceString(s, "<OBJECTS_QUOTED>", objectsquoted);
}
if(target)
- {
+ {
+ std::string targetQuoted = target;
+ if(targetQuoted.size() && targetQuoted[0] != '\"')
+ {
+ targetQuoted = '\"';
+ targetQuoted += target;
+ targetQuoted += '\"';
+ }
+ cmSystemTools::ReplaceString(s, "<TARGET_QUOTED>", targetQuoted.c_str());
cmSystemTools::ReplaceString(s, "<TARGET>", target);
}
if(targetBase)