summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeTargetDepends.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/cmComputeTargetDepends.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/cmComputeTargetDepends.cxx')
-rw-r--r--Source/cmComputeTargetDepends.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index 10041db..5c739b8 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;