diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-19 23:05:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-20 22:52:23 (GMT) |
commit | d74bca5a8fee1d45c60b60a70a2a1a90abb74180 (patch) | |
tree | 434a3715b2c767d76eabb0a666b1f900c8ec953f /Source/cmGeneratorTarget.h | |
parent | c6e86955086e1824cd666bc69c802d48074cc138 (diff) | |
download | CMake-d74bca5a8fee1d45c60b60a70a2a1a90abb74180.zip CMake-d74bca5a8fee1d45c60b60a70a2a1a90abb74180.tar.gz CMake-d74bca5a8fee1d45c60b60a70a2a1a90abb74180.tar.bz2 |
cmGeneratorTarget: Copy the policy map from the cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index eaec83b..2dc3a6f 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -33,6 +33,14 @@ public: bool IsImported() const; const char *GetLocation(const std::string& config) const; +#define DECLARE_TARGET_POLICY(POLICY) \ + cmPolicies::PolicyStatus GetPolicyStatus ## POLICY () const \ + { return this->PolicyMap.Get(cmPolicies::POLICY); } + + CM_FOR_EACH_TARGET_POLICY(DECLARE_TARGET_POLICY) + +#undef DECLARE_TARGET_POLICY + /** Get the location of the target in the build tree with a placeholder referencing the configuration in the native build system. This location is suitable for use as the LOCATION target property. */ @@ -641,6 +649,7 @@ private: typedef std::map<OutputNameKey, std::string> OutputNameMapType; mutable OutputNameMapType OutputNameMap; mutable std::set<cmLinkItem> UtilityItems; + cmPolicies::PolicyMap PolicyMap; mutable bool PolicyWarnedCMP0022; mutable bool DebugIncludesDone; mutable bool DebugCompileOptionsDone; |