summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-27 17:14:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-27 17:14:16 (GMT)
commit0954696e3ee948afe3d42c6a6e41d70573640db1 (patch)
tree2b5f3c07f59fd9257793babc8e42f039a8c97bb6 /Source/cmTarget.cxx
parentb3d5e0fa2dfd1a721ba26b212782ababe41b799a (diff)
downloadCMake-0954696e3ee948afe3d42c6a6e41d70573640db1.zip
CMake-0954696e3ee948afe3d42c6a6e41d70573640db1.tar.gz
CMake-0954696e3ee948afe3d42c6a6e41d70573640db1.tar.bz2
ENH: fix line length problem
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 338e88c..bfbfdeb 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -229,9 +229,10 @@ void cmTarget::TraceVSDependencies(std::string projFile,
// 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 @@ void cmTarget::TraceVSDependencies(std::string projFile,
// 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;