From 9f2dca805c8010636d4be7ef03d96bfc131c9809 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 28 Oct 2013 19:47:46 +0100 Subject: [PATCH] Move GetLocation to cmGeneratorTarget. --- Source/cmCustomCommandGenerator.cxx | 2 +- Source/cmExtraCodeBlocksGenerator.cxx | 2 +- Source/cmGeneratorTarget.cxx | 25 +++++++++++++++++++++++-- Source/cmGeneratorTarget.h | 3 +++ Source/cmGlobalKdevelopGenerator.cxx | 2 +- Source/cmLocalGenerator.cxx | 4 ++-- Source/cmTarget.cxx | 15 --------------- Source/cmTarget.h | 3 --- 8 files changed, 31 insertions(+), 25 deletions(-) diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx index 086c9f958..7f3b65109 100644 --- a/Source/cmCustomCommandGenerator.cxx +++ b/Source/cmCustomCommandGenerator.cxx @@ -48,7 +48,7 @@ std::string cmCustomCommandGenerator::GetCommand(unsigned int c) const (target->Target->IsImported() || !this->LG->GetMakefile()->IsOn("CMAKE_CROSSCOMPILING"))) { - return target->Target->GetLocation(this->Config); + return target->GetLocation(this->Config); } return this->GE->Parse(argv0)->Evaluate(this->LG->GetMakefile(), this->Config); diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 6d145a212..933a256af 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -593,7 +593,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout, { cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(target); - location = gt->Target->GetLocation(buildType); + location = gt->GetLocation(buildType); } fout<<"