summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-06 18:54:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-06 18:54:45 (GMT)
commit910a9d608e31a3446d0cbb86eb78917cc04b1a64 (patch)
tree22f68e393a0698bc7c91469d56bc80acfbb952fa /Source/cmTarget.cxx
parent674c5b306671129bc4a854137c304f19e2c3bf65 (diff)
downloadCMake-910a9d608e31a3446d0cbb86eb78917cc04b1a64.zip
CMake-910a9d608e31a3446d0cbb86eb78917cc04b1a64.tar.gz
CMake-910a9d608e31a3446d0cbb86eb78917cc04b1a64.tar.bz2
cmTarget: Simplify ClearDependencyInformation signature
We don't need to pass an argument with the target's own name.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index bb21022..f7ead9f 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -635,12 +635,11 @@ const std::vector<std::string>& cmTarget::GetLinkDirectories() const
return this->LinkDirectories;
}
-void cmTarget::ClearDependencyInformation(cmMakefile& mf,
- const std::string& target)
+void cmTarget::ClearDependencyInformation(cmMakefile& mf)
{
// Clear the dependencies. The cache variable must exist iff we are
// recording dependency information for this target.
- std::string depname = target;
+ std::string depname = this->GetName();
depname += "_LIB_DEPENDS";
if (this->RecordDependencies) {
mf.AddCacheDefinition(depname, "", "Dependencies for target",
@@ -648,7 +647,7 @@ void cmTarget::ClearDependencyInformation(cmMakefile& mf,
} else {
if (mf.GetDefinition(depname)) {
std::string message = "Target ";
- message += target;
+ message += this->GetName();
message += " has dependency information when it shouldn't.\n";
message += "Your cache is probably stale. Please remove the entry\n ";
message += depname;