summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-30 13:41:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-30 13:41:04 (GMT)
commitae69928e69b81a08272ff5eb53a94f198d4952e1 (patch)
treee286a28f745230015ef27af3fc82c1805e69b0ee /Source/cmLocalUnixMakefileGenerator.cxx
parentbbfc747f2e63dcc57ba983cc5aec09bf0f5547b4 (diff)
downloadCMake-ae69928e69b81a08272ff5eb53a94f198d4952e1.zip
CMake-ae69928e69b81a08272ff5eb53a94f198d4952e1.tar.gz
CMake-ae69928e69b81a08272ff5eb53a94f198d4952e1.tar.bz2
BUG: borland make treats ./target and target as different also convert to outputpathrelative may get passed a quoted path
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 08b0177..af4ddf6 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1323,11 +1323,21 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
target += name;
target += cmSystemTools::GetExecutableExtension();
target = this->ConvertToRelativeOutputPath(target.c_str());
+ cmSystemTools::ConvertToUnixSlashes(target);
bool needsLocalTarget = false;
- if(target.find('/', 2) != target.npos)
+ unsigned int startPos = 2;
+ if(m_Makefile->GetDefinition("BORLAND"))
+ {
+ // the borland makefiles treat .\target and target as different
+ // targets. All other makes treat them the same
+ startPos = 0;
+ }
+ if(target.find('/', startPos) != target.npos)
{
needsLocalTarget = true;
}
+ target = cmSystemTools::ConvertToOutputPath(target.c_str());
+
std::string objs = "$(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ") ";
std::string depend = "$(";