summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 17:19:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:24:43 (GMT)
commitfb4fca0b5efabdf061bd256ed9d35edae6f42b9d (patch)
tree9578ec77531c70f68cecaa46d95788385f274b72 /Source/cmGeneratorExpressionNode.cxx
parent50fb2ad6463c500fde44c000c777aa3ac1cffc7e (diff)
downloadCMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.zip
CMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.gz
CMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.bz2
cmGeneratorTarget: Access global state through LocalGenerator.
Diffstat (limited to 'Source/cmGeneratorExpressionNode.cxx')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index 945c284..c7c0e73 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -1497,11 +1497,11 @@ static const struct TargetPolicyNode : public cmGeneratorExpressionNode
const char *policy = targetPolicyWhitelist[i];
if (parameters.front() == policy)
{
- cmMakefile *mf = context->HeadTarget->Target->GetMakefile();
+ cmLocalGenerator* lg = context->HeadTarget->GetLocalGenerator();
switch(statusForTarget(context->HeadTarget, policy))
{
case cmPolicies::WARN:
- mf->IssueMessage(cmake::AUTHOR_WARNING,
+ lg->IssueMessage(cmake::AUTHOR_WARNING,
cmPolicies::GetPolicyWarning(policyForString(policy)));
case cmPolicies::REQUIRED_IF_USED:
case cmPolicies::REQUIRED_ALWAYS: