summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommandGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-08 21:13:07 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-15 19:53:48 (GMT)
commitf0cdb6001b3e915fc0d9c1120165d49725440bbd (patch)
treea310c36370b6935d7458f70a61e3eada72ce8b08 /Source/cmCustomCommandGenerator.h
parent4749e4cb76cc1e23cb23f37ceec2e856a18218ce (diff)
downloadCMake-f0cdb6001b3e915fc0d9c1120165d49725440bbd.zip
CMake-f0cdb6001b3e915fc0d9c1120165d49725440bbd.tar.gz
CMake-f0cdb6001b3e915fc0d9c1120165d49725440bbd.tar.bz2
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.
Diffstat (limited to 'Source/cmCustomCommandGenerator.h')
-rw-r--r--Source/cmCustomCommandGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCustomCommandGenerator.h b/Source/cmCustomCommandGenerator.h
index 5417ec5..4e89f27 100644
--- a/Source/cmCustomCommandGenerator.h
+++ b/Source/cmCustomCommandGenerator.h
@@ -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;