[cmake-commits] hoffman committed cmTarget.cxx 1.109 1.110
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 27 12:14:22 EST 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv12089
Modified Files:
cmTarget.cxx
Log Message:
ENH: fix line length problem
Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- cmTarget.cxx 27 Nov 2006 17:11:27 -0000 1.109
+++ cmTarget.cxx 27 Nov 2006 17:14:16 -0000 1.110
@@ -229,9 +229,10 @@
// add its dependencies to the list to check
unsigned int i;
for (i = 0; i < outsf->GetCustomCommand()->GetDepends().size(); ++i)
- {
- std::string dep = cmSystemTools::GetFilenameName(
- outsf->GetCustomCommand()->GetDepends()[i]);
+ {
+ const std::string& fullName
+ = outsf->GetCustomCommand()->GetDepends()[i];
+ std::string dep = cmSystemTools::GetFilenameName(fullName);
if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe")
{
dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
@@ -246,13 +247,12 @@
// path, then make sure it was not a full path to something
// else, and the fact that the name matched a target was
// just a coincident
- if(cmSystemTools::FileIsFullPath(
- outsf->GetCustomCommand()->GetDepends()[i].c_str()))
+ if(cmSystemTools::FileIsFullPath(fullName.c_str()))
{
std::string tLocation = t->GetLocation(0);
tLocation = cmSystemTools::GetFilenamePath(tLocation);
std::string depLocation = cmSystemTools::GetFilenamePath(
- std::string(outsf->GetCustomCommand()->GetDepends()[i].c_str()));
+ std::string(fullName));
if(depLocation == tLocation)
{
isUtility = true;
More information about the Cmake-commits
mailing list