mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmLocalGenerator: Refactor custom command generator construction
Add support for constructing and using multiple generators for one custom command. cmGeneratorTarget contains a code path that needs this behavior when used with Ninja but not other generators, so use virtual dispatch through cmLocalGenerator.
This commit is contained in:
@@ -70,6 +70,9 @@ public:
|
||||
const std::string& fileConfig,
|
||||
cmNinjaTargetDepends depends);
|
||||
|
||||
std::vector<cmCustomCommandGenerator> MakeCustomCommandGenerators(
|
||||
cmCustomCommand const& cc, std::string const& config) override;
|
||||
|
||||
void AddCustomCommandTarget(cmCustomCommand const* cc,
|
||||
cmGeneratorTarget* target);
|
||||
void AppendCustomCommandLines(cmCustomCommandGenerator const& ccg,
|
||||
|
||||
Reference in New Issue
Block a user