summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-01-06 21:18:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-01-06 21:18:38 (GMT)
commitd1efed14154a708f3b72bdff8f8dbe4a4927bc6e (patch)
tree13fcfd510f0a908b3cc8a30798deace42ef018a8 /Source/cmLocalUnixMakefileGenerator.cxx
parentc83f3b3c4cbb828e19760901cbf542e4fced64c5 (diff)
downloadCMake-d1efed14154a708f3b72bdff8f8dbe4a4927bc6e.zip
CMake-d1efed14154a708f3b72bdff8f8dbe4a4927bc6e.tar.gz
CMake-d1efed14154a708f3b72bdff8f8dbe4a4927bc6e.tar.bz2
ENH: fix for hp make and relative paths never have targets with a ./ at the start of the name
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index af4ddf6..8df2be5 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1325,13 +1325,7 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
target = this->ConvertToRelativeOutputPath(target.c_str());
cmSystemTools::ConvertToUnixSlashes(target);
bool needsLocalTarget = false;
- 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;
- }
+ unsigned int startPos = 0;
if(target.find('/', startPos) != target.npos)
{
needsLocalTarget = true;