summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-10 13:33:25 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-10 13:33:25 (GMT)
commit7b0efcded38c17f9d08580c448e7a71d43261100 (patch)
treeff32b48597f778399321fd49d3a2625c743a8d91 /Source/cmTarget.cxx
parent6f15484368c26b0b617dcfc4307bd1810d899cbe (diff)
parent50fd0a33c98245bbaaea3e772d0d98fb95d65c71 (diff)
downloadCMake-7b0efcded38c17f9d08580c448e7a71d43261100.zip
CMake-7b0efcded38c17f9d08580c448e7a71d43261100.tar.gz
CMake-7b0efcded38c17f9d08580c448e7a71d43261100.tar.bz2
Merge topic 'fix-policy-scopes'
50fd0a33 Tests: Simplify and document policy scopes in RunCMake.CMP* tests b1bbee3e Record more policies on targets when 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 5952444..4432244 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1631,7 +1631,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()
@@ -5840,7 +5840,7 @@ void cmTarget::ComputeLinkImplementation(const std::string& config,
bool noMessage = false;
cmake::MessageType messageType = cmake::FATAL_ERROR;
cmOStringStream e;
- switch(this->Makefile->GetPolicyStatus(cmPolicies::CMP0038))
+ switch(this->GetPolicyStatusCMP0038())
{
case cmPolicies::WARN:
{