summaryrefslogtreecommitdiff
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-25 13:05:45 +0000
committerKitware Robot <kwrobot@kitware.com>2019-01-25 08:06:54 -0500
commit24b6e4830d9027e63db7dfafa500aaeb652d3a4c (patch)
treeb5697a362f3573609e1228bff0629d162b619de1 /Source/cmLocalNinjaGenerator.cxx
parent15bc4a25e50d18ba081f31ffd8fc4724b83460b5 (diff)
parentdc6888573da15cd7ddb9f91b70ef3e6c4e7cae15 (diff)
downloadcmake-24b6e4830d9027e63db7dfafa500aaeb652d3a4c.tar.gz
Merge topic 'exclude_from_all'
dc6888573d Pass EXCLUDE_FROM_ALL from directory to targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2816
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index eb32895301..4b9837ce9b 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -90,9 +90,7 @@ void cmLocalNinjaGenerator::Generate()
if (tg) {
tg->Generate();
// Add the target to "all" if required.
- if (!this->GetGlobalNinjaGenerator()->IsExcluded(
- this->GetGlobalNinjaGenerator()->GetLocalGenerators()[0],
- target)) {
+ if (!this->GetGlobalNinjaGenerator()->IsExcluded(target)) {
this->GetGlobalNinjaGenerator()->AddDependencyToAll(target);
}
delete tg;