diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-26 14:52:39 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-26 15:37:04 -0400 |
commit | d13bd6ec3d7232b4b62d3106684f4f57951f3b28 (patch) | |
tree | 60f15d15887fe0cc79cbfe701c79bce46b9e65eb /Source | |
parent | 3cc3d42aba879fff5e85b363ae8f21386a3f9f9b (diff) | |
download | cmake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.gz |
Ninja Multi-Config: Don't try to calculate dependencies for "all"
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 4 |
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) { |