diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 10:39:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-07 02:10:29 (GMT) |
commit | 5f66900e71fdc33b40c46bf8a87b35d88d280769 (patch) | |
tree | 419e1fb8badf433119ca8caba9cc8c10a6507029 /Source/cmSetPropertyCommand.cxx | |
parent | c5b8841fd96727a290e148e8b5132f893f8b4d4e (diff) | |
download | CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.zip CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.gz CMake-5f66900e71fdc33b40c46bf8a87b35d88d280769.tar.bz2 |
cmGlobalGenerator: Port Find API to cmMakefile.
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r-- | Source/cmSetPropertyCommand.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx index 31e460f..17ad475 100644 --- a/Source/cmSetPropertyCommand.cxx +++ b/Source/cmSetPropertyCommand.cxx @@ -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 |