summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 10:39:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-07 02:10:29 (GMT)
commit5f66900e71fdc33b40c46bf8a87b35d88d280769 (patch)
tree419e1fb8badf433119ca8caba9cc8c10a6507029 /Source/cmGetPropertyCommand.cxx
parentc5b8841fd96727a290e148e8b5132f893f8b4d4e (diff)
downloadCMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.zip
CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.gz
CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.bz2
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 33d638b..4c42f53 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