ENH: fix line length problem

This commit is contained in:
Bill Hoffman 2006-11-27 12:14:16 -05:00
parent b3d5e0fa2d
commit 0954696e3e

View File

@ -229,9 +229,10 @@ void cmTarget::TraceVSDependencies(std::string projFile,
// add its dependencies to the list to check // add its dependencies to the list to check
unsigned int i; unsigned int i;
for (i = 0; i < outsf->GetCustomCommand()->GetDepends().size(); ++i) for (i = 0; i < outsf->GetCustomCommand()->GetDepends().size(); ++i)
{ {
std::string dep = cmSystemTools::GetFilenameName( const std::string& fullName
outsf->GetCustomCommand()->GetDepends()[i]); = outsf->GetCustomCommand()->GetDepends()[i];
std::string dep = cmSystemTools::GetFilenameName(fullName);
if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe") if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe")
{ {
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep); dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
@ -246,13 +247,12 @@ void cmTarget::TraceVSDependencies(std::string projFile,
// path, then make sure it was not a full path to something // path, then make sure it was not a full path to something
// else, and the fact that the name matched a target was // else, and the fact that the name matched a target was
// just a coincident // just a coincident
if(cmSystemTools::FileIsFullPath( if(cmSystemTools::FileIsFullPath(fullName.c_str()))
outsf->GetCustomCommand()->GetDepends()[i].c_str()))
{ {
std::string tLocation = t->GetLocation(0); std::string tLocation = t->GetLocation(0);
tLocation = cmSystemTools::GetFilenamePath(tLocation); tLocation = cmSystemTools::GetFilenamePath(tLocation);
std::string depLocation = cmSystemTools::GetFilenamePath( std::string depLocation = cmSystemTools::GetFilenamePath(
std::string(outsf->GetCustomCommand()->GetDepends()[i].c_str())); std::string(fullName));
if(depLocation == tLocation) if(depLocation == tLocation)
{ {
isUtility = true; isUtility = true;