summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-10-22 21:00:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-10-22 21:00:00 (GMT)
commit040f7768859ae974d10ef24670768fce574bb2e4 (patch)
tree42b9e48b578e01521bfe3266e26616fa555bfffd /Source/cmLocalUnixMakefileGenerator.cxx
parent43bc8a0d63705d57481ec7c9cefed1b65402e98f (diff)
downloadCMake-040f7768859ae974d10ef24670768fce574bb2e4.zip
CMake-040f7768859ae974d10ef24670768fce574bb2e4.tar.gz
CMake-040f7768859ae974d10ef24670768fce574bb2e4.tar.bz2
FIX: fix the problem where a target is a single character and nmake gets confused and add a test for it
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 80fee93..f00261c 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2587,7 +2587,7 @@ void cmLocalUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
tgt = this->ConvertToMakeTarget(tgt.c_str());
if(depends.empty())
{
- fout << tgt.c_str() << ":\n";
+ fout << tgt.c_str() << " :\n";
}
else
{
@@ -2599,7 +2599,7 @@ void cmLocalUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,
replace = *dep;
m_Makefile->ExpandVariablesInString(replace);
replace = this->ConvertToMakeTarget(replace.c_str());
- fout << tgt.c_str() << ": " << replace.c_str() << "\n";
+ fout << tgt.c_str() << " : " << replace.c_str() << "\n";
}
}