diff options
author | Brad King <brad.king@kitware.com> | 2014-03-06 14:18:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-06 16:05:47 (GMT) |
commit | b1bbee3e9a284503b7372afd7b67dc9d5ba0c31a (patch) | |
tree | 504884a40b12aaedd70a08471217e8246bb9a6d8 /Source/cmComputeTargetDepends.cxx | |
parent | a7c956b86736ea82ade88bea6414cd6a8c84e307 (diff) | |
download | CMake-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/cmComputeTargetDepends.cxx')
-rw-r--r-- | Source/cmComputeTargetDepends.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx index 6511510..7870564 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; |