summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-26 14:52:39 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-26 15:37:04 -0400
commitd13bd6ec3d7232b4b62d3106684f4f57951f3b28 (patch)
tree60f15d15887fe0cc79cbfe701c79bce46b9e65eb /Source
parent3cc3d42aba879fff5e85b363ae8f21386a3f9f9b (diff)
downloadcmake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.gz
Ninja Multi-Config: Don't try to calculate dependencies for "all"
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 04155e09d9..2c152ce640 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1202,7 +1202,9 @@ void cmGlobalNinjaGenerator::AddTargetAlias(const std::string& alias,
std::string outputPath = this->NinjaOutputPath(alias);
std::string buildAlias = this->BuildAlias(outputPath, config);
cmNinjaDeps outputs;
- this->AppendTargetOutputs(target, outputs, config);
+ if (config != "all") {
+ this->AppendTargetOutputs(target, outputs, config);
+ }
// Mark the target's outputs as ambiguous to ensure that no other target
// uses the output as an alias.
for (std::string const& output : outputs) {