summaryrefslogtreecommitdiff
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 12:39:51 +0200
committerStephen Kelly <steveire@gmail.com>2015-08-07 04:10:29 +0200
commit5f66900e71fdc33b40c46bf8a87b35d88d280769 (patch)
tree419e1fb8badf433119ca8caba9cc8c10a6507029 /Source/cmGetPropertyCommand.cxx
parentc5b8841fd96727a290e148e8b5132f893f8b4d4e (diff)
downloadcmake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.gz
cmGlobalGenerator: Port Find API to cmMakefile.
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index 33d638b6a7..4c42f5314a 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -262,13 +262,8 @@ bool cmGetPropertyCommand::HandleDirectoryMode()
dir = cmSystemTools::CollapseFullPath(dir);
// Lookup the generator.
- if(cmLocalGenerator* lg =
- (this->Makefile->GetGlobalGenerator()->FindLocalGenerator(dir)))
- {
- // Use the makefile for the directory found.
- mf = lg->GetMakefile();
- }
- else
+ mf = this->Makefile->GetGlobalGenerator()->FindMakefile(dir);
+ if (!mf)
{
// Could not find the directory.
this->SetError