mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Introduce "generator expression" syntax to custom commands (#11209)
Evaluate in the COMMAND arguments of custom commands the generator
expression syntax introduced in commit d2e1f2b4 (Introduce "generator
expressions" to add_test, 2009-08-11). These expressions have a syntax
like $<TARGET_FILE:mytarget> and are evaluated during build system
generation. This syntax allows per-configuration target output files to
be referenced in custom command lines.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
class cmCustomCommand;
|
||||
class cmMakefile;
|
||||
class cmLocalGenerator;
|
||||
class cmGeneratorExpression;
|
||||
|
||||
class cmCustomCommandGenerator
|
||||
{
|
||||
@@ -26,9 +27,11 @@ class cmCustomCommandGenerator
|
||||
cmLocalGenerator* LG;
|
||||
bool OldStyle;
|
||||
bool MakeVars;
|
||||
cmGeneratorExpression* GE;
|
||||
public:
|
||||
cmCustomCommandGenerator(cmCustomCommand const& cc, const char* config,
|
||||
cmMakefile* mf);
|
||||
~cmCustomCommandGenerator();
|
||||
unsigned int GetNumberOfCommands() const;
|
||||
std::string GetCommand(unsigned int c) const;
|
||||
void AppendArguments(unsigned int c, std::string& cmd) const;
|
||||
|
||||
Reference in New Issue
Block a user