diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-30 17:39:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-04 13:06:41 (GMT) |
commit | 69a038a9e90a8839b69f4cb8826688be611e8b0d (patch) | |
tree | c645fe0ad15a511f56a58d9cd201ce14dbd9586f /Source/cmLocalGenerator.cxx | |
parent | 0863797037b82f01cb356cb2cd4cdcef7ca8ae48 (diff) | |
download | CMake-69a038a9e90a8839b69f4cb8826688be611e8b0d.zip CMake-69a038a9e90a8839b69f4cb8826688be611e8b0d.tar.gz CMake-69a038a9e90a8839b69f4cb8826688be611e8b0d.tar.bz2 |
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.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 8931e6f..58366d1 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(); |