cmGlobalGenerator: Port Find API to cmMakefile.

This commit is contained in:
Stephen Kelly
2015-08-02 12:39:51 +02:00
parent c5b8841fd9
commit 5f66900e71
5 changed files with 21 additions and 20 deletions
+2 -8
View File
@@ -205,14 +205,8 @@ bool cmSetPropertyCommand::HandleDirectoryMode()
// The local generators are associated with collapsed paths.
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