diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-26 18:52:39 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-26 19:37:04 (GMT) |
commit | d13bd6ec3d7232b4b62d3106684f4f57951f3b28 (patch) | |
tree | 60f15d15887fe0cc79cbfe701c79bce46b9e65eb /Source/cmGlobalNinjaGenerator.cxx | |
parent | 3cc3d42aba879fff5e85b363ae8f21386a3f9f9b (diff) | |
download | CMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.zip CMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.gz CMake-d13bd6ec3d7232b4b62d3106684f4f57951f3b28.tar.bz2 |
Ninja Multi-Config: Don't try to calculate dependencies for "all"
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-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 04155e0..2c152ce 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) { |