diff options
author | Brad King <brad.king@kitware.com> | 2019-09-27 12:50:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-30 14:30:28 (GMT) |
commit | a75586c775eb8f663ca1372ff20f9a51e1ad420d (patch) | |
tree | da2ae0b6b895709dc89073a0d74edfe58d947343 /Source/cmLocalNinjaGenerator.cxx | |
parent | a49cd4d1a75f20180a349cdfea3fd384eedf3e8b (diff) | |
download | CMake-a75586c775eb8f663ca1372ff20f9a51e1ad420d.zip CMake-a75586c775eb8f663ca1372ff20f9a51e1ad420d.tar.gz CMake-a75586c775eb8f663ca1372ff20f9a51e1ad420d.tar.bz2 |
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.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index fed8be5..187a847 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); - } } } |