diff options
author | Brad King <brad.king@kitware.com> | 2020-10-22 17:57:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-15 12:00:52 (GMT) |
commit | 7b64b0cd5a4046bf8743c3e2d3c57cb470bfa95f (patch) | |
tree | e054475a078a46be0c4c76e01c83409db0034481 /Source/cmLocalGenerator.h | |
parent | d29da8ed3eb757d10643039aa738bad0727c1b6a (diff) | |
download | CMake-7b64b0cd5a4046bf8743c3e2d3c57cb470bfa95f.zip CMake-7b64b0cd5a4046bf8743c3e2d3c57cb470bfa95f.tar.gz CMake-7b64b0cd5a4046bf8743c3e2d3c57cb470bfa95f.tar.bz2 |
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.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index 0c7ea45..db239c0 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -24,6 +24,7 @@ class cmCompiledGeneratorExpression; class cmComputeLinkInformation; +class cmCustomCommand; class cmCustomCommandGenerator; class cmCustomCommandLines; class cmGeneratorTarget; @@ -363,6 +364,9 @@ public: bool command_expand_lists = false, const std::string& job_pool = "", bool stdPipesUTF8 = false); + virtual std::vector<cmCustomCommandGenerator> MakeCustomCommandGenerators( + cmCustomCommand const& cc, std::string const& config); + std::vector<std::string> ExpandCustomCommandOutputPaths( cmCompiledGeneratorExpression const& cge, std::string const& config); std::vector<std::string> ExpandCustomCommandOutputGenex( |