summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-10 09:33:25 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-10 09:33:25 -0400
commit7b0efcded38c17f9d08580c448e7a71d43261100 (patch)
treeff32b48597f778399321fd49d3a2625c743a8d91 /Source
parent6f15484368c26b0b617dcfc4307bd1810d899cbe (diff)
parent50fd0a33c98245bbaaea3e772d0d98fb95d65c71 (diff)
downloadcmake-7b0efcded38c17f9d08580c448e7a71d43261100.tar.gz
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')
-rw-r--r--Source/cmComputeTargetDepends.cxx2
-rw-r--r--Source/cmTarget.cxx4
-rw-r--r--Source/cmTarget.h5
3 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index 10041db8ac..5c739b87ae 100644
--- a/Source/cmComputeTargetDepends.cxx
+++ b/Source/cmComputeTargetDepends.cxx
@@ -349,7 +349,7 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
cmMakefile *makefile = depender->GetMakefile();
cmake::MessageType messageType = cmake::AUTHOR_WARNING;
bool issueMessage = false;
- switch(makefile->GetPolicyStatus(cmPolicies::CMP0046))
+ switch(depender->GetPolicyStatusCMP0046())
{
case cmPolicies::WARN:
issueMessage = true;
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 5952444366..4432244b77 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:
{
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index d5ef18d9f4..3ef853bbcc 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -26,8 +26,11 @@
F(CMP0020) \
F(CMP0021) \
F(CMP0022) \
+ F(CMP0027) \
+ F(CMP0038) \
F(CMP0041) \
- F(CMP0042)
+ F(CMP0042) \
+ F(CMP0046)
class cmake;
class cmMakefile;