summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-23 15:03:55 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-23 20:45:09 (GMT)
commit2c14eb4852924e5423d58785e2cb3bcd72af7710 (patch)
tree943034a2c523fade5c17e5e200b917e96c2c5883 /Source/cmTarget.h
parentf6241db3e0b69fbf99835b955b17be0f253a742f (diff)
downloadCMake-2c14eb4852924e5423d58785e2cb3bcd72af7710.zip
CMake-2c14eb4852924e5423d58785e2cb3bcd72af7710.tar.gz
CMake-2c14eb4852924e5423d58785e2cb3bcd72af7710.tar.bz2
cmTarget: Move member `PolicyMap` to impl
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 33439fa..ca9a31d 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -78,10 +78,16 @@ public:
///! Set/Get the name of the target
const std::string& GetName() const { return this->Name; }
+ ///! Get the policy map
+ cmPolicies::PolicyMap const& GetPolicyMap() const;
+
+ ///! Get policy status
+ cmPolicies::PolicyStatus GetPolicyStatus(cmPolicies::PolicyID policy) const;
+
#define DECLARE_TARGET_POLICY(POLICY) \
cmPolicies::PolicyStatus GetPolicyStatus##POLICY() const \
{ \
- return this->PolicyMap.Get(cmPolicies::POLICY); \
+ return this->GetPolicyStatus(cmPolicies::POLICY); \
}
CM_FOR_EACH_TARGET_POLICY(DECLARE_TARGET_POLICY)
@@ -291,7 +297,6 @@ private:
private:
bool IsGeneratorProvided;
- cmPolicies::PolicyMap PolicyMap;
std::string Name;
std::string InstallPath;
std::string RuntimeInstallPath;