summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-06 14:18:37 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-06 16:05:47 (GMT)
commitb1bbee3e9a284503b7372afd7b67dc9d5ba0c31a (patch)
tree504884a40b12aaedd70a08471217e8246bb9a6d8 /Source/cmTarget.cxx
parenta7c956b86736ea82ade88bea6414cd6a8c84e307 (diff)
downloadCMake-b1bbee3e9a284503b7372afd7b67dc9d5ba0c31a.zip
CMake-b1bbee3e9a284503b7372afd7b67dc9d5ba0c31a.tar.gz
CMake-b1bbee3e9a284503b7372afd7b67dc9d5ba0c31a.tar.bz2
Record more policies on targets when created
Policies CMP0027, CMP0038, and CMP0046 have per-target meaning so record the policy settings on targets as they are created.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index db34bd8..84a9a7c 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1730,7 +1730,7 @@ static void processIncludeDirectories(cmTarget const* tgt,
cmake::MessageType messageType = cmake::FATAL_ERROR;
if (fromEvaluatedImported)
{
- switch(mf->GetPolicyStatus(cmPolicies::CMP0027))
+ switch(tgt->GetPolicyStatusCMP0027())
{
case cmPolicies::WARN:
e << (mf->GetPolicies()
@@ -5662,7 +5662,7 @@ void cmTarget::ComputeLinkImplementation(const char* config,
bool noMessage = false;
cmake::MessageType messageType = cmake::FATAL_ERROR;
cmOStringStream e;
- switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0038))
+ switch(this->GetPolicyStatusCMP0038())
{
case cmPolicies::WARN:
{