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<<"