summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-22 20:19:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-22 20:19:48 (GMT)
commite74377dcd809d078f7d7a24dd2dedc7ed6ef986e (patch)
tree8121236e27268d199c2f7e5bb6c2ee1a47eef949 /Source
parentd14ceb8a381b470b51eb5a1033dd8296156cd01f (diff)
downloadCMake-e74377dcd809d078f7d7a24dd2dedc7ed6ef986e.zip
CMake-e74377dcd809d078f7d7a24dd2dedc7ed6ef986e.tar.gz
CMake-e74377dcd809d078f7d7a24dd2dedc7ed6ef986e.tar.bz2
ENH: fixes for borland with spaces in the path
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 9e57a15..8a1d453 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -768,6 +768,18 @@ cmLocalUnixMakefileGenerator::ExpandRuleVariables(std::string& s,
}
if(targetBase)
{
+ // special case for quoted paths with spaces
+ // if you see <TARGET_BASE>.lib then put the .lib inside
+ // the quotes, same for .dll
+ if((strlen(targetBase) > 1) && targetBase[0] == '\"')
+ {
+ std::string base = targetBase;
+ base[base.size()-1] = '.';
+ std::string baseLib = base + "lib\"";
+ std::string baseDll = base + "dll\"";
+ cmSystemTools::ReplaceString(s, "<TARGET_BASE>.lib", baseLib.c_str());
+ cmSystemTools::ReplaceString(s, "<TARGET_BASE>.dll", baseDll.c_str());
+ }
cmSystemTools::ReplaceString(s, "<TARGET_BASE>", targetBase);
}
if(linkLibs)