mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Ninja: Fix dupbuild error skipping alias with conflicting custom command
See-also: https://issues.slicer.org/view.php?id=4595 Reported-by: Isaiah Norton <inorton@bwh.harvard.edu>
This commit is contained in:
@@ -1112,6 +1112,12 @@ void cmGlobalNinjaGenerator::WriteTargetAliases(std::ostream& os)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Don't write alias if there is a already a custom command with
|
||||
// matching output
|
||||
if (this->HasCustomCommandOutput(ta.first)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cmNinjaDeps deps;
|
||||
this->AppendTargetOutputs(ta.second, deps);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user