summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-12 02:23:31 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 12:49:21 (GMT)
commit239ac841538be536e70cbddb2b04bef2b342a2e5 (patch)
treec3a89391f87edea6ddbca9738ba28f6c5591d229 /Source/cmGeneratorExpression.cxx
parente028381bf1c5d1fdf464ed835a549be4a0569adb (diff)
downloadCMake-239ac841538be536e70cbddb2b04bef2b342a2e5.zip
CMake-239ac841538be536e70cbddb2b04bef2b342a2e5.tar.gz
CMake-239ac841538be536e70cbddb2b04bef2b342a2e5.tar.bz2
Add a generator expression for target properties.
There are two overloads, so that it can use the operational target when a target property is being evaluated, and a target can alternatively be specified by name. At this point, the generators don't chain. That comes later.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r--Source/cmGeneratorExpression.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index 0885616..55a1e3e 100644
--- a/Source/cmGeneratorExpression.cxx
+++ b/Source/cmGeneratorExpression.cxx
@@ -65,7 +65,8 @@ cmGeneratorExpression::~cmGeneratorExpression()
//----------------------------------------------------------------------------
const char *cmCompiledGeneratorExpression::Evaluate(
- cmMakefile* mf, const char* config, bool quiet) const
+ cmMakefile* mf, const char* config, bool quiet,
+ cmGeneratorTarget *target) const
{
if (!this->NeedsParsing)
{
@@ -84,6 +85,7 @@ const char *cmCompiledGeneratorExpression::Evaluate(
context.Config = config;
context.Quiet = quiet;
context.HadError = false;
+ context.Target = target;
context.Backtrace = this->Backtrace;
for ( ; it != end; ++it)