summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-22 23:13:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:21 (GMT)
commit7d409f500e3403f8dbb4a0fee6ecdad94f45c35e (patch)
tree0a3704029d9b557be242067aec0ce5efe230c37e /Source/cmGeneratorExpressionNode.cxx
parent7a1b83cb3fc79639b9e2c1bf11af2d2274e4224a (diff)
downloadCMake-7d409f500e3403f8dbb4a0fee6ecdad94f45c35e.zip
CMake-7d409f500e3403f8dbb4a0fee6ecdad94f45c35e.tar.gz
CMake-7d409f500e3403f8dbb4a0fee6ecdad94f45c35e.tar.bz2
cmLocalGenerator: Add GetPolicyStatus API
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 7a7e4ff..03f8d3f 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -393,7 +393,7 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
if (cmsysString_strcasecmp(parameters.begin()->c_str(), compilerId) == 0)
{
- switch(context->LG->GetMakefile()->GetPolicyStatus(cmPolicies::CMP0044))
+ switch(context->LG->GetPolicyStatus(cmPolicies::CMP0044))
{
case cmPolicies::WARN:
{
@@ -1100,7 +1100,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
"COMPILE_DEFINITIONS_"))
{
cmPolicies::PolicyStatus polSt =
- context->LG->GetMakefile()->GetPolicyStatus(cmPolicies::CMP0043);
+ context->LG->GetPolicyStatus(cmPolicies::CMP0043);
if (polSt == cmPolicies::WARN || polSt == cmPolicies::OLD)
{
interfacePropertyName = "INTERFACE_COMPILE_DEFINITIONS";