summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.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/cmGetDirectoryPropertyCommand.cxx
parentc5b8841fd96727a290e148e8b5132f893f8b4d4e (diff)
downloadCMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.zip
CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.gz
CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.bz2
cmGlobalGenerator: Port Find API to cmMakefile.
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx
index c056d95..2558876 100644
--- a/Source/cmGetDirectoryPropertyCommand.cxx
+++ b/Source/cmGetDirectoryPropertyCommand.cxx
@@ -51,10 +51,8 @@ bool cmGetDirectoryPropertyCommand
sd = cmSystemTools::CollapseFullPath(sd);
// lookup the makefile from the directory name
- cmLocalGenerator *lg =
- this->Makefile->GetGlobalGenerator()->
- FindLocalGenerator(sd);
- if (!lg)
+ dir = this->Makefile->GetGlobalGenerator()->FindMakefile(sd);
+ if (!dir)
{
this->SetError
("DIRECTORY argument provided but requested directory not found. "
@@ -62,7 +60,6 @@ bool cmGetDirectoryPropertyCommand
"it is valid but has not been processed yet.");
return false;
}
- dir = lg->GetMakefile();
++i;
}