diff options
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetPropertyCommand.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx index 0a37b97495..7622cf231a 100644 --- a/Source/cmGetPropertyCommand.cxx +++ b/Source/cmGetPropertyCommand.cxx @@ -260,9 +260,7 @@ bool cmGetPropertyCommand::HandleTargetMode() return false; } - if(cmTarget* target = - this->Makefile->GetLocalGenerator()->GetGlobalGenerator() - ->FindTarget(0, this->Name.c_str(), true)) + if(cmTarget* target = this->Makefile->FindTargetToUse(this->Name.c_str())) { return this->StoreResult(target->GetProperty(this->PropertyName.c_str())); } |