summaryrefslogtreecommitdiff
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-30 19:39:08 +0200
committerBrad King <brad.king@kitware.com>2015-06-04 09:06:41 -0400
commit69a038a9e90a8839b69f4cb8826688be611e8b0d (patch)
treec645fe0ad15a511f56a58d9cd201ce14dbd9586f /Source/cmLocalGenerator.cxx
parent0863797037b82f01cb356cb2cd4cdcef7ca8ae48 (diff)
downloadcmake-69a038a9e90a8839b69f4cb8826688be611e8b0d.tar.gz
cmMakefile: Refactor directories specified with the subdirs command.
Store the directories on the cmMakefile as explicitly not-configured-yet.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 8931e6f46e..58366d1a93 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -119,18 +119,15 @@ void cmLocalGenerator::Configure()
assert(cmSystemTools::FileExists(currentStart.c_str(), true));
this->Makefile->ProcessBuildsystemFile(currentStart.c_str());
- // at the end of the ReadListFile handle any old style subdirs
- // first get all the subdirectories
- std::vector<cmLocalGenerator *> subdirs = this->GetChildren();
+ // at the end handle any old style subdirs
+ std::vector<cmLocalGenerator *> subdirs =
+ this->GetMakefile()->GetUnConfiguredDirectories();
// for each subdir recurse
std::vector<cmLocalGenerator *>::iterator sdi = subdirs.begin();
for (; sdi != subdirs.end(); ++sdi)
{
- if (!(*sdi)->GetMakefile()->IsConfigured())
- {
- this->Makefile->ConfigureSubDirectory(*sdi);
- }
+ this->Makefile->ConfigureSubDirectory(*sdi);
}
this->Makefile->AddCMakeDependFilesFromUser();