summaryrefslogtreecommitdiff
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-27 08:50:54 -0400
committerBrad King <brad.king@kitware.com>2019-09-30 10:30:28 -0400
commita75586c775eb8f663ca1372ff20f9a51e1ad420d (patch)
treeda2ae0b6b895709dc89073a0d74edfe58d947343 /Source/cmLocalNinjaGenerator.cxx
parenta49cd4d1a75f20180a349cdfea3fd384eedf3e8b (diff)
downloadcmake-a75586c775eb8f663ca1372ff20f9a51e1ad420d.tar.gz
Ninja: Simplify top-level "all" target generation
Remove its dedicated implementation and update the per-directory "all" target generation to work for the top-level directory too.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index fed8be53e1..187a8472e9 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -88,12 +88,6 @@ void cmLocalNinjaGenerator::Generate()
auto tg = cmNinjaTargetGenerator::New(target);
if (tg) {
tg->Generate();
- // Add the target to "all" if required.
- if (!this->GetGlobalNinjaGenerator()->IsExcluded(
- this->GetGlobalNinjaGenerator()->GetLocalGenerators()[0],
- target)) {
- this->GetGlobalNinjaGenerator()->AddDependencyToAll(target);
- }
}
}