summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileUtilityTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 18:09:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-17 15:30:37 (GMT)
commitb857f0d84b539056bc6a810161eb22e9b9baca43 (patch)
tree59240cbfca43ef414c6c3fd1386d8cb7044b39b7 /Source/cmMakefileUtilityTargetGenerator.cxx
parented09f3b292bee34e8b30204c93ef5596a3124d00 (diff)
downloadCMake-b857f0d84b539056bc6a810161eb22e9b9baca43.zip
CMake-b857f0d84b539056bc6a810161eb22e9b9baca43.tar.gz
CMake-b857f0d84b539056bc6a810161eb22e9b9baca43.tar.bz2
Use GetName from cmGeneratorTarget.
Diffstat (limited to 'Source/cmMakefileUtilityTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileUtilityTargetGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMakefileUtilityTargetGenerator.cxx b/Source/cmMakefileUtilityTargetGenerator.cxx
index 303ca63..18594bb 100644
--- a/Source/cmMakefileUtilityTargetGenerator.cxx
+++ b/Source/cmMakefileUtilityTargetGenerator.cxx
@@ -42,7 +42,8 @@ void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
this->CreateRuleFile();
*this->BuildFileStream
- << "# Utility rule file for " << this->Target->GetName() << ".\n\n";
+ << "# Utility rule file for "
+ << this->GeneratorTarget->GetName() << ".\n\n";
if(!this->NoRuleMessages)
{
@@ -101,11 +102,11 @@ void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
// Write the rule.
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
- this->Target->GetName(),
+ this->GeneratorTarget->GetName(),
depends, commands, true);
// Write the main driver rule to build everything in this target.
- this->WriteTargetDriverRule(this->Target->GetName(), false);
+ this->WriteTargetDriverRule(this->GeneratorTarget->GetName(), false);
// Write clean target
this->WriteTargetCleanRules();