ENH: fix line length

This commit is contained in:
Ken Martin 2006-06-12 15:44:10 -04:00
parent 0964cb6c64
commit 1f1196410a
2 changed files with 9 additions and 4 deletions

View File

@ -300,7 +300,8 @@ void cmLocalUnixMakefileGenerator3
// Add a fast rule to build the target
std::string makefileName = this->GetRelativeTargetDirectory(t->second);
makefileName += "/build.make";
std::string makeTargetName = this->GetRelativeTargetDirectory(t->second);
std::string makeTargetName =
this->GetRelativeTargetDirectory(t->second);
makeTargetName += "/build";
localName = t->second.GetName();
localName += "/fast";

View File

@ -1170,14 +1170,18 @@ void cmLocalVisualStudio7Generator
std::string compileFlagsCopy = compileFlags;
std::map<cmStdString, cmStdString> fileFlagMap;
this->FillFlagMapFromCommandFlags
(fileFlagMap, &cmLocalVisualStudio7GeneratorFlagTable[0], compileFlagsCopy);
if(compileFlagsCopy.size() && compileFlagsCopy.find_first_not_of(" ")
(fileFlagMap,
&cmLocalVisualStudio7GeneratorFlagTable[0],
compileFlagsCopy);
if(compileFlagsCopy.size() &&
compileFlagsCopy.find_first_not_of(" ")
!= compileFlagsCopy.npos)
{
fout << "\t\t\t\t\tAdditionalOptions=\""
<< this->EscapeForXML(compileFlagsCopy.c_str()) << "\"\n";
}
for(std::map<cmStdString, cmStdString>::iterator m = fileFlagMap.begin();
for(std::map<cmStdString,
cmStdString>::iterator m = fileFlagMap.begin();
m != fileFlagMap.end(); ++m)
{
fout << "\t\t\t\t\t" << m->first << "=\"" << m->second << "\"\n";